-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#180: Belos: Provide Tpetra
version of TFQMR examples
#183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments in TFQMRTpetraExFile.cpp
packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp
Outdated
Show resolved
Hide resolved
Tpetra
version of TFQMR examples
Heidi provided the following response: The Tpetra HB matrix reader needs to be fixed then. This is a common format for matrices to be stored in and not being able to read them in for examples and tests is a problem for the solver packages. Not fixing the reader will just be postponing the inevitable. I think this means this goes into the problem area for now. |
Finally a new version of orsiss.hb has been found and is working with the |
1c52c19
to
08f79ec
Compare
b73f610
to
2114d8b
Compare
⚡ Code quality check ⚡ 🔴 clang-tidy found 74 issues! Click here to see details.Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 75 to 80 in b368b71
!Line: 75 - warning: function 'run' has cognitive complexity of 45 (threshold 25) [readability-function-cognitive-complexity]
!Line: 115 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 127 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 130 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 134 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 138 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 141 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 144 - note: +1
!Line: 184 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 189 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 191 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 193 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 195 - note: +1, nesting level increased to 1
!Line: 210 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 211 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 220 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 230 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 234 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 247 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 249 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 252 - note: +3, including nesting penalty of 2, nesting level increased to 3
!Line: 257 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 257 - note: +1
!Line: 259 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 261 - note: +1, nesting level increased to 1
!Line: 263 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 267 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 267 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 267 - note: +3, including nesting penalty of 2, nesting level increased to 3
!Line: 267 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 267 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 267 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 267 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 269 - note: +1, including nesting penalty of 0, nesting level increased to 1 Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 75 to 80 in b368b71
!Line: 75 - warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 100 to 105 in b368b71
!Line: 100 - warning: variable 'session' of type 'Teuchos::GlobalMPISession' can be declared 'const' [misc-const-correctness] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 100 to 105 in b368b71
!Line: 100 - warning: use nullptr [modernize-use-nullptr] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 113 to 118 in b368b71
!Line: 113 - warning: variable 'tol' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 115 to 120 in b368b71
!Line: 115 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 118 to 123 in b368b71
!Line: 118 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 121 to 126 in b368b71
!Line: 121 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 122 to 127 in b368b71
!Line: 122 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 124 to 129 in b368b71
!Line: 124 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 125 to 130 in b368b71
!Line: 125 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 127 to 132 in b368b71
!Line: 127 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 130 to 135 in b368b71
!Line: 130 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 134 to 139 in b368b71
!Line: 134 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 136 to 141 in b368b71
!Line: 136 - warning: variable 'A' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 136 to 141 in b368b71
!Line: 136 - warning: variable name 'A' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 138 to 143 in b368b71
!Line: 138 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 140 to 145 in b368b71
!Line: 140 - warning: variable 'map' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 141 to 146 in b368b71
!Line: 141 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 184 to 189 in b368b71
!Line: 184 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 189 to 194 in b368b71
!Line: 189 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 193 to 198 in b368b71
!Line: 193 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 195 to 200 in b368b71
!Line: 195 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 199 to 204 in b368b71
!Line: 199 - warning: variable 'X' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 199 to 204 in b368b71
!Line: 199 - warning: variable name 'X' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 201 to 206 in b368b71
!Line: 201 - warning: variable 'B' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 201 to 206 in b368b71
!Line: 201 - warning: variable name 'B' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 203 to 208 in b368b71
!Line: 203 - warning: variable 'problem' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 210 to 215 in b368b71
!Line: 210 - warning: redundant boolean literal supplied to boolean operator [readability-simplify-boolean-expr] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 211 to 216 in b368b71
!Line: 211 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 217 to 222 in b368b71
!Line: 217 - warning: variable 'solver' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 240 to 245 in b368b71
!Line: 240 - warning: variable 'actualResids' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 241 to 246 in b368b71
!Line: 241 - warning: variable 'rhsNorm' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 242 to 247 in b368b71
!Line: 242 - warning: variable 'resids' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 249 to 254 in b368b71
!Line: 249 - warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 250 to 255 in b368b71
!Line: 250 - warning: variable 'actRes' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 252 to 257 in b368b71
!Line: 252 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 259 to 264 in b368b71
!Line: 259 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/TFQMRTpetraExFile.cpp Lines 263 to 268 in b368b71
!Line: 263 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 76 to 81 in b368b71
!Line: 76 - warning: function 'run' has cognitive complexity of 39 (threshold 25) [readability-function-cognitive-complexity]
!Line: 125 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 128 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 135 - note: +1
!Line: 170 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 174 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 176 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 178 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 179 - note: +1, nesting level increased to 1
!Line: 195 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 196 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 205 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 226 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 228 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 231 - note: +3, including nesting penalty of 2, nesting level increased to 3
!Line: 235 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 235 - note: +1
!Line: 237 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 238 - note: +1, nesting level increased to 1
!Line: 240 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 243 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 243 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 243 - note: +3, including nesting penalty of 2, nesting level increased to 3
!Line: 243 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 243 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 243 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 243 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 245 - note: +1, including nesting penalty of 0, nesting level increased to 1 Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 76 to 81 in b368b71
!Line: 76 - warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 101 to 106 in b368b71
!Line: 101 - warning: variable 'session' of type 'Teuchos::GlobalMPISession' can be declared 'const' [misc-const-correctness] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 101 to 106 in b368b71
!Line: 101 - warning: use nullptr [modernize-use-nullptr] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 114 to 119 in b368b71
!Line: 114 - warning: variable 'tol' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 116 to 121 in b368b71
!Line: 116 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 119 to 124 in b368b71
!Line: 119 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 120 to 125 in b368b71
!Line: 120 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 122 to 127 in b368b71
!Line: 122 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 123 to 128 in b368b71
!Line: 123 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 125 to 130 in b368b71
!Line: 125 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 128 to 133 in b368b71
!Line: 128 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 131 to 136 in b368b71
!Line: 131 - warning: variable 'A' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 131 to 136 in b368b71
!Line: 131 - warning: variable name 'A' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 133 to 138 in b368b71
!Line: 133 - warning: variable 'map' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 170 to 175 in b368b71
!Line: 170 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 174 to 179 in b368b71
!Line: 174 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 178 to 183 in b368b71
!Line: 178 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 179 to 184 in b368b71
!Line: 179 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 183 to 188 in b368b71
!Line: 183 - warning: variable 'X' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 183 to 188 in b368b71
!Line: 183 - warning: variable name 'X' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 185 to 190 in b368b71
!Line: 185 - warning: variable 'B' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 185 to 190 in b368b71
!Line: 185 - warning: variable name 'B' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 188 to 193 in b368b71
!Line: 188 - warning: variable 'problem' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 195 to 200 in b368b71
!Line: 195 - warning: redundant boolean literal supplied to boolean operator [readability-simplify-boolean-expr] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 196 to 201 in b368b71
!Line: 196 - warning: statement should be inside braces [google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 202 to 207 in b368b71
!Line: 202 - warning: variable 'solver' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 219 to 224 in b368b71
!Line: 219 - warning: variable 'actualResids' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 220 to 225 in b368b71
!Line: 220 - warning: variable 'rhsNorm' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 221 to 226 in b368b71
!Line: 221 - warning: variable 'resid' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 228 to 233 in b368b71
!Line: 228 - warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 229 to 234 in b368b71
!Line: 229 - warning: variable 'actRes' is not initialized [cppcoreguidelines-init-variables] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 231 to 236 in b368b71
!Line: 231 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 237 to 242 in b368b71
!Line: 237 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] Trilinos/packages/belos/tpetra/example/TFQMR/PseudoBlockTFQMRTpetraExFile.cpp Lines 240 to 245 in b368b71
!Line: 240 - warning: statement should be inside braces [hicpp-braces-around-statements,readability-braces-around-statements] |
Fixes #180
PR to Trilinos: trilinos#12327
Currently these examples cannot build inside Trilinos (Commented in CmakeLists.txt) because of a circular dependency
Circular Dependency to Ifpack2 has to be fixed first
The 2 examples can only be compiled when adding Ifpack2 as a dependency of Belos (like Ifpack) and by disabling dependencies from ifpack2 to Belos because there is a circular dependency between these 2 packages to fix first.
So it should work after dependency fix.
Possible Obsolete HB Matrix File Reader
This example shows also how to use the Tpetra::Utils:readHBMatrix which does not require TriUtil (epetra does require it)
The fact is that Tpetra fail to open orsirr1.hb file found in the epetra tests and this data file is very old so it might be obsolete for now ? (there is no HB version option found in Tpetra::Utils:readHBMatrix it just complains about an invalid file format)
To see the problem you can change the following (using the TriUtil HB reader)
to that (Tpetra Utils HB reader)
It does not work with osrirr1.hb but works like it has been done here with another .hb data file found in trilinos