File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -561,11 +561,7 @@ namespace {
561561
562562 template <int flags>
563563 inline constexpr int select () {
564- constexpr const bool ef_gradients = flags & colvar::coordnum::ef_gradients;
565- constexpr const bool ef_use_internal_pbc = flags & colvar::coordnum::ef_use_internal_pbc;
566- constexpr const bool ef_use_pairlist = flags & colvar::coordnum::ef_use_pairlist;
567- constexpr const bool ef_rebuild_pairlist = flags & colvar::coordnum::ef_rebuild_pairlist;
568- return int (ef_gradients) + (int (ef_use_internal_pbc) << 1 ) + (int (ef_use_pairlist) << 2 ) + (int (ef_rebuild_pairlist) << 3 );
564+ return int (bool (flags & colvar::coordnum::ef_gradients)) + (int (bool (flags & colvar::coordnum::ef_use_internal_pbc)) << 1 ) + (int (bool (flags & colvar::coordnum::ef_use_pairlist)) << 2 ) + (int (bool (flags & colvar::coordnum::ef_rebuild_pairlist)) << 3 );
569565 }
570566
571567 template <int flags>
You can’t perform that action at this time.
0 commit comments