Skip to content

Commit 2bfd601

Browse files
authored
Merge branch 'develop' into develop
2 parents 7e14038 + 2f8ef74 commit 2bfd601

File tree

260 files changed

+25322
-18622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+25322
-18622
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,12 @@ endif(HDF5_FOUND)
701701
#-------------------------------------------------------------------
702702
# set up libboost library, header only
703703
#-------------------------------------------------------------------
704-
set(Boost_NO_BOOST_CMAKE on)
705-
find_package(Boost 1.61.0 REQUIRED)
704+
if(CMAKE_VERSION VERSION_LESS 3.30.0)
705+
set(Boost_NO_BOOST_CMAKE on)
706+
find_package(Boost 1.61.0 REQUIRED)
707+
else()
708+
find_package(Boost 1.70.0 CONFIG REQUIRED headers)
709+
endif()
706710
if(Boost_FOUND)
707711
target_compile_definitions(Boost::boost INTERFACE "HAVE_LIBBOOST")
708712
message(STATUS "Setting Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ P. Kent _et al._ J. Chem. Phys. **152** 174105 (2020), https://doi.org/10.1063/5
4949
* BLAS/LAPACK, numerical library. Use vendor and platform-optimized libraries.
5050
* LibXml2, XML parser, http://xmlsoft.org/
5151
* HDF5 v1.10.0 or later, portable I/O library, http://www.hdfgroup.org/HDF5/
52-
* BOOST v1.61.0 or newer, peer-reviewed portable C++ source libraries, http://www.boost.org
52+
* BOOST v1.70.0 or newer, peer-reviewed portable C++ source libraries, http://www.boost.org
5353
* FFTW, FFT library, http://www.fftw.org/
5454
* MPI, parallel library. Optional, but a near requirement for production calculations.
5555
* Python3. Older versions are not supported as of January 2020.

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ unsupported and untested by the developers although they may still work.
130130
performance at large scale requires parallel version :math:`>=` 1.10.
131131

132132
- BOOST, peer-reviewed portable C++ source libraries
133-
(http://www.boost.org). Minimum version is 1.61.0.
133+
(http://www.boost.org). Minimum version is 1.70.0 and only needs ``headers`` library.
134134

135135
- FFTW, FFT library (http://www.fftw.org/).
136136

external_codes/boost_multi/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
command to update subtree to v0.80.1 tag. Run from top level QMCPACK source directory
22

3-
git subtree pull --squash -P external_codes/boost_multi/multi https://gitlab.com/correaa/boost-multi.git v0.80.1
3+
git subtree pull --squash -P external_codes/boost_multi/multi https://gitlab.com/correaa/boost-multi.git v0.86.0
Lines changed: 50 additions & 216 deletions
Original file line numberDiff line numberDiff line change
@@ -1,230 +1,64 @@
1+
# https://clang-format-configurator.site
2+
# Copyright 2020-2024 Alfredo A. Correa
13
---
2-
Language: Cpp
3-
# BasedOnStyle: Google
4-
#AccessModifierOffset: -1
5-
AlignAfterOpenBracket: BlockIndent # Align
4+
Language: Cpp
5+
AccessModifierOffset: -3
6+
AlignAfterOpenBracket: BlockIndent
67
AlignArrayOfStructures: Right
7-
#AlignConsecutiveMacros: None
8-
AlignConsecutiveAssignments: Consecutive # None
9-
#AlignConsecutiveBitFields: None
10-
AlignConsecutiveDeclarations: Consecutive
11-
#AlignEscapedNewlines: Left
12-
AlignOperands: AlignAfterOperator
13-
AlignTrailingComments: false
14-
#AllowAllArgumentsOnNextLine: true
15-
#AllowAllParametersOfDeclarationOnNextLine: true
16-
#AllowShortEnumsOnASingleLine: true
17-
#AllowShortBlocksOnASingleLine: Never
18-
AllowShortCaseLabelsOnASingleLine: true # false
19-
#AllowShortFunctionsOnASingleLine: All
20-
#AllowShortLambdasOnASingleLine: All
21-
#AllowShortIfStatementsOnASingleLine: WithoutElse
22-
#AllowShortLoopsOnASingleLine: true
23-
#AlwaysBreakAfterDefinitionReturnType: None
24-
#AlwaysBreakAfterReturnType: None
25-
#AlwaysBreakBeforeMultilineStrings: true
26-
AlwaysBreakTemplateDeclarations: No # Yes
27-
#AttributeMacros:
28-
# - __capability
29-
#BinPackArguments: true
30-
#BinPackParameters: true
31-
#BraceWrapping:
32-
# AfterCaseLabel: false
33-
# AfterClass: false
34-
# AfterControlStatement: Never
35-
# AfterEnum: false
36-
# AfterFunction: false
37-
# AfterNamespace: false
38-
# AfterObjCDeclaration: false
39-
# AfterStruct: false
40-
# AfterUnion: false
41-
# AfterExternBlock: false
42-
# BeforeCatch: false
43-
# BeforeElse: false
44-
# BeforeLambdaBody: false
45-
# BeforeWhile: false
46-
# IndentBraces: false
47-
# SplitEmptyFunction: true
48-
# SplitEmptyRecord: true
49-
# SplitEmptyNamespace: true
50-
#BreakBeforeBinaryOperators: None
51-
#BreakBeforeConceptDeclarations: true
52-
#BreakBeforeBraces: Attach
53-
#BreakBeforeInheritanceComma: false
8+
AlignConsecutiveAssignments:
9+
Enabled: true
10+
AcrossEmptyLines: false
11+
AcrossComments: false
12+
AlignConsecutiveDeclarations:
13+
Enabled: true
14+
AcrossEmptyLines: false
15+
AcrossComments: false
16+
AlignOperands: AlignAfterOperator
17+
AllowAllArgumentsOnNextLine: false
18+
AllowShortLambdasOnASingleLine: Inline
19+
AllowShortCaseLabelsOnASingleLine: true
20+
AlwaysBreakTemplateDeclarations: No
5421
BreakInheritanceList: BeforeComma
55-
#BreakBeforeTernaryOperators: true
56-
#BreakConstructorInitializersBeforeComma: false
57-
#BreakConstructorInitializers: BeforeColon
58-
#BreakAfterJavaFieldAnnotations: false
59-
#BreakStringLiterals: true
60-
ColumnLimit: 0
61-
#CommentPragmas: '^ IWYU pragma:'
62-
QualifierAlignment: Right # Leave
63-
#CompactNamespaces: false
22+
BraceWrapping:
23+
BeforeLambdaBody: false
24+
ColumnLimit: 0
25+
QualifierAlignment: Right
6426
ConstructorInitializerIndentWidth: 0
65-
ContinuationIndentWidth: 99
66-
#Cpp11BracedListStyle: true
67-
#DeriveLineEnding: true
68-
#DerivePointerAlignment: true
69-
#DisableFormat: false
70-
#EmptyLineAfterAccessModifier: Never
71-
#EmptyLineBeforeAccessModifier: LogicalBlock
72-
#ExperimentalAutoDetectBinPacking: false
73-
#PackConstructorInitializers: NextLine
74-
#BasedOnStyle: ''
75-
#ConstructorInitializerAllOnOneLineOrOnePerLine: false
76-
#AllowAllConstructorInitializersOnNextLine: true
27+
ContinuationIndentWidth: 4
28+
Cpp11BracedListStyle: true
7729
FixNamespaceComments: true
78-
#ForEachMacros:
79-
# - foreach
80-
# - Q_FOREACH
81-
# - BOOST_FOREACH
82-
#IfMacros:
83-
# - KJ_IF_MAYBE
84-
#IncludeBlocks: Regroup
85-
#IncludeCategories:
86-
# - Regex: '^<ext/.*\.h>'
87-
# Priority: 2
88-
# SortPriority: 0
89-
# CaseSensitive: false
90-
# - Regex: '^<.*\.h>'
91-
# Priority: 1
92-
# SortPriority: 0
93-
# CaseSensitive: false
94-
# - Regex: '^<.*'
95-
# Priority: 2
96-
# SortPriority: 0
97-
# CaseSensitive: false
98-
# - Regex: '.*'
99-
# Priority: 3
100-
# SortPriority: 0
101-
# CaseSensitive: false
102-
#IncludeIsMainRegex: '([-_](test|unittest))?$'
103-
#IncludeIsMainSourceRegex: ''
104-
#IndentAccessModifiers: true # false
105-
AccessModifierOffset: -98 # 2
106-
#IndentCaseLabels: true
107-
#IndentCaseBlocks: false
108-
#IndentGotoLabels: true
109-
#IndentPPDirectives: None
110-
#IndentExternBlock: AfterExternBlock
111-
#IndentRequires: false
112-
IndentWidth: 99
113-
#IndentWrappedFunctionNames: false
114-
#InsertTrailingCommas: None
115-
#JavaScriptQuotes: Leave
116-
#JavaScriptWrapImports: true
117-
#KeepEmptyLinesAtTheStartOfBlocks: false
118-
#LambdaBodyIndentation: Signature
119-
#MacroBlockBegin: ''
120-
#MacroBlockEnd: ''
121-
#MaxEmptyLinesToKeep: 1
122-
#NamespaceIndentation: None
123-
#ObjCBinPackProtocolList: Never
124-
#ObjCBlockIndentWidth: 2
125-
#ObjCBreakBeforeNestedBlockParam: true
126-
#ObjCSpaceAfterProperty: false
127-
#ObjCSpaceBeforeProtocolList: true
128-
#PenaltyBreakAssignment: 2
129-
#PenaltyBreakBeforeFirstCallParameter: 1
130-
#PenaltyBreakComment: 300
131-
#PenaltyBreakFirstLessLess: 120
132-
#PenaltyBreakOpenParenthesis: 0
133-
#PenaltyBreakString: 1000
30+
IncludeBlocks: Regroup
31+
IncludeCategories:
32+
- Regex: <boost/test/unit_test\.hpp>
33+
Priority: 1
34+
- Regex: <(boost\/multi)\/
35+
Priority: 2
36+
- Regex: <([A-Za-z0-9\Q/-_\E])+>
37+
Priority: 6
38+
- Regex: <(catch2|boost)\/
39+
Priority: 5
40+
- Regex: <([A-Za-z0-9.\Q/-_\E])+>
41+
Priority: 4
42+
- Regex: '"([A-Za-z0-9.\Q/-_\E])+"'
43+
Priority: 3
44+
IndentPPDirectives: BeforeHash
45+
IndentWidth: 4
46+
# LambdaBodyIndentation: Signature
13447
PenaltyBreakTemplateDeclaration: 10
135-
#PenaltyExcessCharacter: 1000000
136-
#PenaltyReturnTypeOnItsOwnLine: 200
137-
#PenaltyIndentedWhitespace: 0
13848
PointerAlignment: Left
139-
#PPIndentWidth: -1
140-
#RawStringFormats:
141-
# - Language: Cpp
142-
# Delimiters:
143-
# - cc
144-
# - CC
145-
# - cpp
146-
# - Cpp
147-
# - CPP
148-
# - 'c++'
149-
# - 'C++'
150-
# CanonicalDelimiter: ''
151-
# BasedOnStyle: google
152-
# - Language: TextProto
153-
# Delimiters:
154-
# - pb
155-
# - PB
156-
# - proto
157-
# - PROTO
158-
# EnclosingFunctions:
159-
# - EqualsProto
160-
# - EquivToProto
161-
# - PARSE_PARTIAL_TEXT_PROTO
162-
# - PARSE_TEST_PROTO
163-
# - PARSE_TEXT_PROTO
164-
# - ParseTextOrDie
165-
# - ParseTextProtoOrDie
166-
# - ParseTestProto
167-
# - ParsePartialTestProto
168-
# CanonicalDelimiter: pb
169-
# BasedOnStyle: google
170-
#ReferenceAlignment: Pointer
171-
#ReflowComments: true
172-
#RemoveBracesLLVM: false
173-
#SeparateDefinitionBlocks: Leave
174-
#ShortNamespaceLines: 1
175-
#SortIncludes: CaseSensitive
176-
#SortJavaStaticImport: Before
177-
#SortUsingDeclarations: true
178-
#SpaceAfterCStyleCast: false
179-
#SpaceAfterLogicalNot: false
180-
SpaceAfterTemplateKeyword: false # true
181-
#SpaceBeforeAssignmentOperators: true
182-
#SpaceBeforeCaseColon: false
183-
#SpaceBeforeCpp11BracedList: false
184-
#SpaceBeforeCtorInitializerColon: true
185-
#SpaceBeforeInheritanceColon: true
186-
SpaceBeforeParens: Custom # ControlStatements
49+
SpaceAfterTemplateKeyword: false
50+
SpaceBeforeAssignmentOperators: true
51+
SpaceBeforeParens: Custom
18752
SpaceBeforeParensOptions:
188-
AfterControlStatements: false # true
189-
# AfterForeachMacros: true
190-
# AfterFunctionDefinitionName: false
191-
# AfterFunctionDeclarationName: false
192-
# AfterIfMacros: true
193-
# AfterOverloadedOperator: false
194-
# BeforeNonEmptyParentheses: false
195-
#SpaceAroundPointerQualifiers: Default
196-
#SpaceBeforeRangeBasedForLoopColon: true
197-
#SpaceInEmptyBlock: false
198-
#SpaceInEmptyParentheses: false
53+
AfterControlStatements: false
19954
SpacesBeforeTrailingComments: 2
200-
#SpacesInAngles: Never
201-
#SpacesInConditionalStatement: false
202-
#SpacesInContainerLiterals: true
203-
#SpacesInCStyleCastParentheses: false
20455
SpacesInLineCommentPrefix:
205-
Minimum: 1
206-
# Maximum: -1
207-
#SpacesInParentheses: false
208-
#SpacesInSquareBrackets: false
209-
#SpaceBeforeSquareBrackets: false
210-
#BitFieldColonSpacing: Both
211-
Standard: c++17
212-
#StatementAttributeLikeMacros:
213-
# - Q_EMIT
214-
#StatementMacros:
215-
# - Q_UNUSED
216-
# - QT_REQUIRE_VERSION
217-
TabWidth: 99
218-
#UseCRLF: false
219-
UseTab: ForContinuationAndIndentation # Never
56+
Minimum: 1
57+
Standard: c++17
58+
TabWidth: 4
59+
UseTab: ForContinuationAndIndentation
22060
WhitespaceSensitiveMacros:
22161
- BOOST_REQUIRE
22262
- BOOST_TEST
22363
- BOOST_TEST_REQUIRE
224-
#WhitespaceSensitiveMacros:
225-
# - STRINGIZE
226-
# - PP_STRINGIZE
227-
# - BOOST_PP_STRINGIZE
228-
# - NS_SWIFT_NAME
229-
# - CF_SWIFT_NAME
230-
...
64+
- BOOST_AUTO_TEST_CASE

external_codes/boost_multi/multi/.clang-tidy

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*-indent-tabs-mode:nil;c-basic-offset:2;tab-width:2;autowrap:nil;-*-
1+
# Copyright 2020-2024 Alfredo A. Correa
22

33
WarningsAsErrors: '*'
44
HeaderFilterRegex: '.'
@@ -14,9 +14,6 @@ CheckOptions:
1414
- { key: readability-identifier-length.MinimumLoopCounterNameLength , value: 2 }
1515
- { key: readability-identifier-length.MinimumParameterNameLength , value: 2 }
1616
- { key: readability-identifier-length.MinimumVariableNameLength , value: 2 }
17-
- { key: readability-identifier-naming.MacroDefinitionCase , value: UPPER_CASE }
18-
- { key: readability-identifier-naming.MacroDefinitionPrefix, , value: BOOST_MULTI_ }
19-
- { key: readability-identifier-naming.MacroDefinitionSuffix, , value: * }
2017
- { key: readability-identifier-naming.NamespaceCase , value: lower_case }
2118
- { key: readability-identifier-naming.PrivateMemberPrefix , value: '' }
2219
- { key: readability-identifier-naming.PrivateMemberSuffix , value: _ }
@@ -32,25 +29,22 @@ CheckOptions:
3229

3330
Checks: '*,
3431
-altera-struct-pack-align,
35-
-clang-diagnostic-deprecated-declarations,
3632
-cppcoreguidelines-avoid-magic-numbers,
3733
-cppcoreguidelines-macro-usage,
3834
-fuchsia-overloaded-operator,
3935
-fuchsia-trailing-return,
4036
-llvmlibc-*,
41-
-misc-include-cleaner,
4237
-modernize-use-nodiscard,
43-
-readability-magic-numbers
44-
'
38+
-readability-magic-numbers'
4539
## explanation of the suppressed rules above:
4640
# -altera-struct-pack-align, // this asks to use non-standard pragmas such as __attribute__((aligned(0))) and _attribute__((packed)), may interfeere with gcc/nvcc compatibility?
47-
# -clang-diagnostic-deprecated-declarations // some test run deprecated functions on purposes
41+
# -clang-diagnostic-deprecated-declarations // some test run deprecated functions on purpose
4842
# -cppcoreguidelines-avoid-magic-numbers, // all tests use magic numbers
4943
# -cppcoreguidelines-macro-usage, // BLAS adaptors uses a lot of macros
5044
# -fuchsia-overloaded-operator, // this library overloads operators (==, <, +, &)
51-
# -fuchsia-trailing-return, // to allow any '-> decltype(auto)', contradicts modernize trailing
5245
# -llvmlibc-*, // nonsense warnings, for llvm developers
53-
# -misc-include-cleaner, // using Boost.Test
46+
# -llvm-header-guard, // allow PCH
47+
# -misc-include-cleaner // allow PCH
5448
# -modernize-use-nodiscard, // this would add [[nodiscard]] to almost all functions, adding a lot of noise
55-
# -readability-magic-numbers, // all tests use magic numbers
49+
# -readability-magic-numbers, // many tests use magic numbers
5650

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[gl pipelines](https://gitlab.com/correaa/boost-multi/-/pipelines?page=1&scope=all)
2+
[gl merge request](https://gitlab.com/correaa/boost-multi/-/merge_requests/new)
3+
4+
[![gitlabci](https://gitlab.com/correaa/boost-multi/badges/master/pipeline.svg)](https://gitlab.com/correaa/boost-multi/-/pipelines?page=1&scope=all)

external_codes/boost_multi/multi/.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222
GIT_FETCH_JOBS: 8
2323
NET_RETRY_COUNT: 5
2424
DEFAULT_BUILD_VARIANT: debug,release
25+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
2526

2627
jobs:
2728
posix:
@@ -470,6 +471,7 @@ jobs:
470471
addrmd: "64"
471472
os: windows-2019
472473

474+
timeout-minutes: 120
473475
runs-on: ${{matrix.os}}
474476

475477
steps:
@@ -517,6 +519,7 @@ jobs:
517519
addrmd: "64"
518520
os: windows-2022
519521

522+
timeout-minutes: 120
520523
runs-on: ${{matrix.os}}
521524

522525
steps:

0 commit comments

Comments
 (0)