Skip to content
Snippets Groups Projects
Unverified Commit b6a989ff authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

work around ADOL-C's comparison operators returning an `int`

parent fea1aef1
Branches
No related tags found
1 merge request!8work around ADOL-C's comparison operators returning an `int`
--- ---
# Install external dependencies # Install external dependencies
before_script: before_script:
- patch -d /duneci/modules/dune-common -p1 < dune-common-densematrix-adolc-workaround.diff
- duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-matrix-vector.git - duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-matrix-vector.git
- duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-fufem.git - duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-fufem.git
- duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-solvers.git - duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-solvers.git
......
diff --git a/dune/common/densematrix.hh b/dune/common/densematrix.hh
index b03bbb0b..917ecef9 100644
--- a/dune/common/densematrix.hh
+++ b/dune/common/densematrix.hh
@@ -897,7 +897,7 @@ namespace Dune
for (size_type k=i+1; k<A.rows(); k++)
{
auto abs = fvmeta::absreal(A[k][i]);
- auto mask = abs > pivmax;
+ bool mask = abs > pivmax;
pivmax = Simd::cond(mask, abs, pivmax);
imax = Simd::cond(mask, simd_index_type(k), imax);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment