Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
566 commits
Select commit Hold shift + click to select a range
d00a78b
Merge pull request #3283 from boutproject/laplacepetsc-metric3d-zguar…
ZedThree Feb 27, 2026
8789750
Merge branch 'next' into fci-tests
dschwoerer Feb 27, 2026
b151199
Merge pull request #3261 from boutproject/laplace-common-transforms
ZedThree Feb 27, 2026
570a763
Bump ZedThree/clang-tidy-review from 0.23.0 to 0.23.1
dependabot[bot] Feb 27, 2026
53f838c
Bump actions/cache from 4 to 5
dependabot[bot] Feb 27, 2026
518c5a5
Bump externalpackages/boutdata from `962d5a5` to `0e06267`
dependabot[bot] Feb 27, 2026
a34c4fa
Bump externalpackages/googletest from `9156d4c` to `73a63ea`
dependabot[bot] Feb 27, 2026
9f618b8
Bump actions/checkout from 5 to 6
dependabot[bot] Feb 27, 2026
db3a1d8
Merge pull request #3292 from boutproject/dependabot/github_actions/a…
ZedThree Mar 2, 2026
2182298
Merge pull request #3288 from boutproject/dependabot/github_actions/a…
ZedThree Mar 2, 2026
5c831d5
Merge pull request #3290 from boutproject/dependabot/submodules/exter…
ZedThree Mar 2, 2026
a8af55a
Merge pull request #3291 from boutproject/dependabot/submodules/exter…
ZedThree Mar 2, 2026
a93281b
Merge pull request #3196 from boutproject/fci-tests
dschwoerer Mar 2, 2026
c9c1015
Merge pull request #3287 from boutproject/dependabot/github_actions/Z…
ZedThree Mar 2, 2026
9658616
enable openmp for sundials if it is enabled for BOUT++
dschwoerer Feb 23, 2023
e96744a
Inherit applyParallelBoundary functions
dschwoerer Mar 18, 2024
ab783f0
Make Field2d and Field3D more similar
dschwoerer Nov 6, 2023
fc2dece
Add more dummy functions to field2d
dschwoerer Mar 27, 2024
4d6873d
Add dummy functions for FieldPerp
dschwoerer Sep 27, 2024
3156681
add setRegion / getRegionID to all fields
dschwoerer Oct 16, 2024
160adb4
Add Field2D::splitParallelSlices() for writing FCI aware code
dschwoerer Mar 14, 2025
a154666
Merge pull request #3295 from boutproject/sundials-openmp-auto
ZedThree Mar 3, 2026
283883b
Merge pull request #3297 from boutproject/f3d-inherit-parbc
ZedThree Mar 3, 2026
5502ce3
Allow XZHermiteSpline also without y-offset
dschwoerer Sep 27, 2024
c74d330
Add communication routine for FCI operation
dschwoerer Jan 15, 2025
afc68d9
Unify XZMonotonicHermiteSpline and XZMonotonicHermiteSpline
dschwoerer Jan 15, 2025
84237c8
Use x-splitting for monotonichermitespline test
dschwoerer Jan 15, 2025
0662449
Set region for lagrange4pt
dschwoerer Jan 16, 2025
f77849e
Add monotonic check also to other code branches
dschwoerer Jan 21, 2025
820f0a5
use lower_bound instead of find
dschwoerer Jan 21, 2025
1178243
Do not shadow mapping
dschwoerer Jan 21, 2025
3d6f587
Ensure setup has been called
dschwoerer Jan 21, 2025
265c8cd
Use pointer to data
dschwoerer Jan 21, 2025
16a162e
Call setup before communicator is used
dschwoerer Jan 21, 2025
e5878c1
Deduplicate code
dschwoerer Jan 21, 2025
aee2713
Fix tags for comm
dschwoerer Jan 21, 2025
b4f7be5
Use pointer instead of std::vector
dschwoerer Jan 21, 2025
578ee8d
Do not reuse requests if the array is still in use
dschwoerer Jan 21, 2025
bf9c9eb
rename offset to getOffsets
dschwoerer Jan 22, 2025
2155f06
Fix: mixup of sending / receiving size
dschwoerer Jan 22, 2025
0662247
Fix receive data offset
dschwoerer Jan 22, 2025
28d4e28
Add check to ensure the proc layout is as expected
dschwoerer Jan 22, 2025
e4507d9
clang-format
dschwoerer Jan 22, 2025
d7ba297
Use BOUT++ assert
dschwoerer Jan 22, 2025
f55f8e4
Fix check
dschwoerer Jan 22, 2025
0e9f7d6
Take periodicity into account
dschwoerer Jan 28, 2025
944adfb
Sort a reference, not a copy
dschwoerer Jan 28, 2025
6daec20
Only communicate non-empty vectors
dschwoerer Jan 28, 2025
3444dd0
Make check stricter
dschwoerer Jan 31, 2025
91bee68
Fix: include global offset in monotonic spline
dschwoerer Jan 31, 2025
d7aeae4
make fci_comm openmp thread safe
dschwoerer Jan 31, 2025
ac5cc70
Fix communication for fci
dschwoerer Feb 7, 2025
885b465
Add check to reduce risk of bugs
dschwoerer Feb 7, 2025
a1c4033
tests: Increase nx for hermitespline interpolation boundary problem
ZedThree Oct 9, 2025
1c25b0e
region may be not used
dschwoerer Feb 2, 2026
c7f8504
Fix [[maybe_unused]] location
dschwoerer Feb 2, 2026
96aa2bd
Add some wiggle room for monotonichermitespline
dschwoerer Feb 4, 2026
df70c89
Allow to overwrite MYG with options.
dschwoerer Feb 24, 2025
52708af
Only read `MYG` if it set or mesh:MYG is not set
dschwoerer Mar 3, 2025
1e5f185
Do not set MYG/MXG if it is not needed
dschwoerer Mar 3, 2025
8267681
Do not set MYG/MXG if it is not needed
dschwoerer Mar 3, 2025
9a45d25
set target properties on exported library
dschwoerer Feb 2, 2026
dce551b
Do not build with openmp
dschwoerer Feb 11, 2026
e0ade7c
be verbose in docker build
dschwoerer Feb 13, 2026
e5cb1eb
[container] Set build type
dschwoerer Feb 13, 2026
e4a0549
Change default to PETSc for 3D metrics
dschwoerer Feb 13, 2026
b043da3
Apply clang-tidy fixes
dschwoerer Mar 3, 2026
d37661b
Move functions to field.hxx and make them virtual
dschwoerer Mar 3, 2026
48e78ec
Apply fixes from clang-tidy
dschwoerer Mar 3, 2026
b6b39d9
The overrides are non-const
dschwoerer Mar 3, 2026
65880e4
[bot] Apply format changes
dschwoerer Mar 3, 2026
a91d3e7
[bot] Add last format changes commit to ignore file
dschwoerer Mar 3, 2026
8d5cb39
[bot] Apply format changes
dschwoerer Mar 3, 2026
0ba91f6
[bot] Add last format changes commit to ignore file
dschwoerer Mar 3, 2026
f473a6b
Apply fixes from clang-format
dschwoerer Mar 4, 2026
a8c5ea8
Cleanup code
dschwoerer Mar 4, 2026
6a104ba
Add maskFromRegion
dschwoerer Mar 19, 2024
ea2ea21
Switch to [[maybe_unused]]
dschwoerer Mar 4, 2026
f2bc048
[bot] Apply format changes
dschwoerer Mar 4, 2026
e0dd204
[bot] Add last format changes commit to ignore file
dschwoerer Mar 4, 2026
8a3f82d
Prefer size_t
dschwoerer Mar 4, 2026
f341037
Apply clang-tidy changes
dschwoerer Mar 4, 2026
999d4ca
Apply clang-tidy improvements
dschwoerer Mar 4, 2026
1f7623c
fixup
dschwoerer Mar 4, 2026
88abeb5
Add missing header
dschwoerer Mar 4, 2026
5ac876b
Add missing header
dschwoerer Mar 4, 2026
614a727
MPI_Request may not be a pointer
dschwoerer Mar 4, 2026
ec69e88
[bot] Apply format changes
dschwoerer Mar 4, 2026
013a847
[bot] Add last format changes commit to ignore file
dschwoerer Mar 4, 2026
d1cfb8a
[bot] Apply format changes
dschwoerer Mar 4, 2026
5c0d41d
[bot] Add last format changes commit to ignore file
dschwoerer Mar 4, 2026
8e20558
Merge pull request #3304 from boutproject/docker-no-openmp
dschwoerer Mar 4, 2026
d439bec
Merge pull request #3305 from boutproject/petsc-default-solver
bendudson Mar 4, 2026
f372be4
Merge pull request #3303 from boutproject/export-config
bendudson Mar 4, 2026
6385330
Merge branch 'next' into f2d-more-f3d
dschwoerer Mar 5, 2026
640d27d
Add missing headers
dschwoerer Mar 5, 2026
054dc3c
Merge branch 'next' into myg-overwrite
bendudson Mar 5, 2026
9bb5bca
Make clear it is a setter
dschwoerer Mar 6, 2026
c95668c
Bump externalpackages/boutdata from `0e06267` to `11f5d0a`
dependabot[bot] Mar 6, 2026
e8defdd
Merge pull request #3311 from boutproject/dependabot/submodules/exter…
bendudson Mar 6, 2026
eaf35d9
Merge branch 'next' into hermitespline
dschwoerer Mar 9, 2026
71c20fb
Merge pull request #3296 from boutproject/f2d-more-f3d
ZedThree Mar 9, 2026
a5392af
Merge branch 'next' into hermitespline
dschwoerer Mar 9, 2026
cf4391c
Merge branch 'next' into myg-overwrite
dschwoerer Mar 9, 2026
fd7ec8b
Merge pull request #3299 from boutproject/myg-overwrite
dschwoerer Mar 9, 2026
01575e2
Merge pull request #3307 from boutproject/mask-from-region
ZedThree Mar 9, 2026
0c3cd4b
Allow more parallel boundary regions
dschwoerer Sep 1, 2025
4cd217b
Add missing header
dschwoerer Mar 4, 2026
92d03c1
Do not rely on valid region being set
dschwoerer Feb 10, 2026
201a969
Ignore if field is not allocated
dschwoerer Feb 10, 2026
a164799
Use fmt syntax, not python f-string
dschwoerer Mar 9, 2026
cc4fd33
Set parallel region by default
dschwoerer Aug 9, 2024
e4c7d98
Only set region of parallel fields for FCI
dschwoerer Sep 26, 2024
0cdf3e2
Fix split parallel slices
dschwoerer Jan 20, 2025
343fe34
add resetRegionParallel
dschwoerer Sep 30, 2025
e7592a8
Move parallel region creation to defaultRegions
dschwoerer Nov 10, 2025
0513875
Remove duplicate definition of resetRegion
dschwoerer Mar 4, 2026
b8bfd3b
Rename to GlobalToLocal1D
dschwoerer Mar 10, 2026
52373e7
Rename to request
dschwoerer Mar 10, 2026
c650881
Add some docs
dschwoerer Mar 10, 2026
3a62dc4
Use templates over pre-processing
dschwoerer Mar 10, 2026
cb84b76
Test serveral implementations
dschwoerer Mar 10, 2026
a81d3eb
Cleanup interface and move more functions to cxx file
dschwoerer Mar 10, 2026
4632df0
Move processor ID calculation to mesh
dschwoerer Mar 10, 2026
4b0ed1c
Use getNZPE()
dschwoerer Mar 10, 2026
325dde3
respect mesh->periodicX
dschwoerer Mar 10, 2026
8dc7b4f
Ensure we are periodic in Y
dschwoerer Mar 10, 2026
db53852
avoid static_cast<void*> for pointer
dschwoerer Mar 10, 2026
29f9727
Merge remote-tracking branch 'origin/next' into hermitespline
dschwoerer Mar 10, 2026
dcafb6c
Add more docs
dschwoerer Mar 10, 2026
424136b
Use better names
dschwoerer Mar 10, 2026
500989b
Fixup getProcIndex
dschwoerer Mar 10, 2026
cabf678
Add headers from clang-tidy
dschwoerer Mar 10, 2026
01e2263
[bot] Apply format changes
dschwoerer Mar 10, 2026
6bd15d2
Apply clang-tidy fixes
dschwoerer Mar 10, 2026
f2d860f
Fixup compile issues
dschwoerer Mar 10, 2026
0ecb0d9
pvode: Don't include bits/basic_string
bendudson Mar 10, 2026
78bbcd1
Merge pull request #3314 from boutproject/pvode-no-bits
dschwoerer Mar 11, 2026
159ce2f
Add getProcIndex to fake_mesh
dschwoerer Mar 11, 2026
1de6329
Add guards for petsc related code
dschwoerer Mar 11, 2026
dbb6959
dev: Add pre-commit config
ZedThree Mar 9, 2026
9e29906
docs: Ignore venv directories
ZedThree Mar 9, 2026
0f27627
docs: Describe formatters and linters used in the project
ZedThree Mar 9, 2026
da01a26
maint: Ignore noisy `clang-tidy` warning
ZedThree Mar 9, 2026
8f24e1e
maint: Enforce `const` on the left of types
ZedThree Mar 9, 2026
64bf672
maint: Add `clangd` config for editors
ZedThree Mar 9, 2026
d4692f0
CI: Don't add formatting commits to `.git-blame-ignore-revs`
ZedThree Mar 9, 2026
47f93b1
Fixup: always use proc for proc computation
dschwoerer Mar 11, 2026
58db33a
Fixup rename
dschwoerer Mar 11, 2026
95f7f17
CI: Run all formatters and linters through `prek`
ZedThree Mar 10, 2026
1c3c9fa
Merge pull request #3306 from boutproject/more-debug
ZedThree Mar 11, 2026
0b73397
CI: Temporarily remove CUDA build while we get it sorted
ZedThree Mar 11, 2026
d1a2770
Merge branch 'next' into c++20
ZedThree Mar 11, 2026
d2ffee2
Merge branch 'next' into c++20
ZedThree Mar 11, 2026
7dd7664
Ensure consistency
dschwoerer Mar 11, 2026
dddd2aa
Fix formatted i18n string for C++20
ZedThree Mar 11, 2026
0aab027
Mark some `OptionsNetCDF` methods as `override`
ZedThree Jun 21, 2024
dd38b45
Make `OptionsNetCDF` registration symbol `const`
ZedThree Jun 21, 2024
a4cec3b
Fix `OptionsIO` docstring appearing on wrong thing
ZedThree Jun 21, 2024
c1fa555
Silence clang-tidy warning about unnamed argument
ZedThree Jul 3, 2024
d19beda
Add option to change frequency output is flushed to disk
ZedThree Jul 3, 2024
0813465
Reset output `Options` after writing to disk
ZedThree Jul 3, 2024
5527447
Fix some clang-tidy warnings
ZedThree Oct 10, 2025
c9e2e27
Add docs for `flush_frequency`
ZedThree Jan 6, 2026
1b47071
[bot] Apply format changes
ZedThree Mar 11, 2026
4c9b456
[bot] Add last format changes commit to ignore file
ZedThree Mar 11, 2026
31df873
Merge pull request #3265 from boutproject/c++20
dschwoerer Mar 11, 2026
9235bcf
Convert `LaplacePetsc` to use `PetscMatrix`
ZedThree Feb 28, 2026
7c0be3c
Remove `TRACE` macro from `PetscMatrix`
ZedThree Mar 2, 2026
0f0723b
Include all headers in petsc interface
ZedThree Mar 2, 2026
48a1e03
Use preconditioner for petsc MAST grids test
ZedThree Mar 2, 2026
e02167d
Remove `todo` comment
ZedThree Mar 9, 2026
2dcebb8
Fix missing headers
ZedThree Mar 9, 2026
e1e1f6b
Apply clang-tidy fixes
ZedThree Mar 9, 2026
abbbec7
Remove some unused defines
ZedThree Mar 11, 2026
9b778be
Always use `sor` preconditioner in PETSc Laplace test for 3D metrics
ZedThree Mar 11, 2026
12c5e2d
Merge pull request #2934 from boutproject/flush-frequency-netcdf
bendudson Mar 11, 2026
74b00f8
docs: Expand description of developer tools
ZedThree Mar 11, 2026
c37f698
CI: Use annotations instead of comments for `clang-tidy-review`
ZedThree Mar 11, 2026
93cc191
Merge pull request #3302 from boutproject/boundary-regions
bendudson Mar 11, 2026
568c70a
Merge pull request #3298 from boutproject/hermitespline
bendudson Mar 11, 2026
52b0bf2
Merge pull request #3309 from boutproject/parallel-regions
bendudson Mar 11, 2026
b74b917
Fix setting yindex for shell preconditioner
ZedThree Mar 11, 2026
d8a1b66
Add basic custom formatter for fields
ZedThree Feb 24, 2026
459724c
Consolidate Field formatters into one implementation
ZedThree Feb 24, 2026
6b0a366
Add region to Field format spec
ZedThree Feb 24, 2026
a9dac31
Add field format spec to not print indices
ZedThree Feb 25, 2026
eb9f063
Add field format spec to transpose field
ZedThree Feb 25, 2026
caccbc4
Add very basic plotting for fields
ZedThree Feb 25, 2026
5599865
Add field format truncation, like numpy
ZedThree Feb 25, 2026
78c6fdf
Fix `Field` formatting for C++20
ZedThree Mar 11, 2026
e952090
Options: Convert Tensor<int> to Tensor<BoutReal> and similar
bendudson Mar 11, 2026
b2e2f35
[bot] Apply format changes
bendudson Mar 11, 2026
05e5f13
[bot] Add last format changes commit to ignore file
bendudson Mar 11, 2026
51d87b7
Merge pull request #3293 from boutproject/petsc-laplace-indexer
bendudson Mar 11, 2026
05fe2a8
XZHermiteSpline: Move implementation_type to bout::details
bendudson Mar 11, 2026
64e4285
[bot] Apply format changes
bendudson Mar 11, 2026
94effb6
[bot] Add last format changes commit to ignore file
bendudson Mar 11, 2026
7c5d9d8
Options: Unit test of Tensor<int> to Tensor<BoutReal>
bendudson Mar 11, 2026
46b4e4c
Merge pull request #3285 from boutproject/field-format
bendudson Mar 11, 2026
f78a8bc
Merge pull request #3317 from boutproject/next-fix-xzhermitespline
bendudson Mar 11, 2026
b4d459e
Merge branch 'next' into options-convert-containers
bendudson Mar 11, 2026
a16442e
Add comment
dschwoerer Aug 9, 2024
d0138af
Ensure we do not segfault if coords is not set
dschwoerer Sep 27, 2024
3c0b658
Preserve regionID in emptyFrom
dschwoerer Oct 16, 2024
1b1b15b
Allow setter to be chained
dschwoerer Dec 4, 2024
6c4ac3b
Expose more arguments of Laplacian
dschwoerer Dec 4, 2024
db7c8ab
Expose `Mesh::get` for Field3D
dschwoerer Dec 4, 2024
c433499
Avoid using kwargs, to avoid hiding typos
dschwoerer Dec 4, 2024
f970f57
Fix deallocation of Laplacian
dschwoerer Dec 4, 2024
e220c66
Prevent accidential overwriting of parallel slices
dschwoerer Mar 11, 2026
8b6b7eb
Set mesh for Fields in Laplacian
dschwoerer Dec 4, 2024
9b978ab
Handle C++ exception for more functions
dschwoerer Feb 7, 2025
31c4352
Expose LaplaceXZ
dschwoerer Feb 10, 2025
2e36b41
Formatting fixes
dschwoerer Feb 10, 2025
e17ce9b
Expose Mesh::get for Field3D
dschwoerer Feb 10, 2025
cc3e112
Only generate grids once
dschwoerer Jan 30, 2026
2c0ddd6
Remove stray doc string
dschwoerer Mar 4, 2026
1d6946f
Remove duplicate definitions
dschwoerer Mar 4, 2026
899b937
Merge pull request #3316 from boutproject/options-convert-containers
ZedThree Mar 12, 2026
d9721f8
Add missing headers from clang-tidy
dschwoerer Mar 12, 2026
e97bb62
Merge pull request #3319 from boutproject/no-compute-ynext
ZedThree Mar 12, 2026
82fe1de
Merge pull request #3315 from boutproject/pre-commit-hooks
ZedThree Mar 12, 2026
208430b
Add headers from clang-tidy
dschwoerer Mar 12, 2026
61f0d5c
Merge branch 'next' of github.com:boutproject/BOUT-dev into HEAD
dschwoerer Mar 12, 2026
9f59df4
Fixes for prek
dschwoerer Mar 12, 2026
a3d4712
Revert "Use annotations instead of comments for `clang-tidy-review`"
ZedThree Mar 12, 2026
16fa08e
Merge pull request #3322 from boutproject/revert-ctr
ZedThree Mar 12, 2026
0528579
Communicate `FieldPerp` consistently with other Fields
ZedThree Mar 12, 2026
8397daa
Merge pull request #3318 from boutproject/misc
dschwoerer Mar 13, 2026
5cad79a
Apply `clang-tidy` fixes
ZedThree Mar 13, 2026
0b71d58
Move `field_type()` to `FieldData`; deprecate `FieldData::is3D()`
ZedThree Mar 13, 2026
976fa6e
Add communicator for XZ planes
ZedThree Mar 13, 2026
e465496
Merge pull request #3327 from boutproject/comm-xz
ZedThree Mar 16, 2026
d9f2a66
Merge pull request #3323 from boutproject/communicate-fieldperp-v2
ZedThree Mar 16, 2026
94b00c8
Enable `uv lock`
dschwoerer Mar 19, 2026
6512604
Update uv.lock file
dschwoerer Mar 19, 2026
1ecca51
Update prek file
dschwoerer Mar 19, 2026
ac0c5b0
Add docs for updating uv tools
dschwoerer Mar 19, 2026
8ab4552
Merge pull request #3333 from boutproject/uv-lock-update
bendudson Mar 20, 2026
ebf4cf8
Update pygithub requirement from ~=2.8 to ~=2.9
dependabot[bot] Mar 23, 2026
ee366d8
Merge pull request #3339 from boutproject/dependabot/pip/pygithub-app…
bendudson Mar 24, 2026
daced86
Merge branch 'next' into field-variable-expression-next
bendudson Mar 27, 2026
854c379
FieldGenerators: Fixes and tidying
bendudson Mar 27, 2026
7df04a7
GridVariable unit tests: Fix unit test
bendudson Mar 28, 2026
8ebc0a0
Field2D/3D: Defer sizing until allocation
bendudson Mar 28, 2026
d3b0ebe
Miscellaneous tidying
bendudson Mar 28, 2026
1bfd9ad
Field2D/3D: Partly revert 8ebc0a0
bendudson Mar 28, 2026
3f15ddb
FieldFactory: Don't test values in Y boundary
bendudson Mar 28, 2026
69ca85d
Clang formatting
bendudson Mar 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
QualifierAlignment: Left
ReflowComments: false
SortIncludes: true
# SortUsingDeclarations: true
Expand Down
2 changes: 2 additions & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore matlab files
**/*.m
5 changes: 3 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,performance-*,readability-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,mpi-*,misc-*,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-misc-non-private-member-variables-in-classes,-clang-analyzer-optin.mpi*,-bugprone-exception-escape,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-readability-function-cognitive-complexity,-misc-no-recursion,-bugprone-easily-swappable-parameters,-readability-identifier-length'
Checks: 'clang-diagnostic-*,clang-analyzer-*,performance-*,readability-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,mpi-*,misc-*,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-misc-non-private-member-variables-in-classes,-clang-analyzer-optin.mpi*,-bugprone-exception-escape,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-readability-function-cognitive-complexity,-misc-no-recursion,-bugprone-easily-swappable-parameters,-readability-identifier-length,-cppcoreguidelines-pro-bounds-avoid-unchecked-container-access'
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: file
Expand All @@ -20,7 +20,7 @@ CheckOptions:
value: 'MPI_Comm'

- key: misc-include-cleaner.IgnoreHeaders
value: 'adios2/.*;bits/.*'
value: 'adios2/.*;bits/.*;cpptrace/.*;petsc.*\.h'
---

Disabled checks and reasons:
Expand All @@ -29,6 +29,7 @@ These are all basically unavoidable in HPC numeric code:
-readability-magic-numbers
-cppcoreguidelines-avoid-magic-numbers
-cppcoreguidelines-pro-bounds-pointer-arithmetic
-cppcoreguidelines-pro-bounds-avoid-unchecked-container-access
-readability-function-cognitive-complexity
-bugprone-easily-swappable-parameters
-readability-identifier-length
Expand Down
6 changes: 6 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Diagnostics:
MissingIncludes: Strict
ClangTidy:
FastCheckFilter: None
Includes:
IgnoreHeader: ["adios2/.*", "bits/.*", "cpptrace/.*", "petsc.*"]
22 changes: 15 additions & 7 deletions .docker/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,26 @@ RUN git clone $URL \
&& git checkout $COMMIT \
&& git submodule update --init --recursive


ENV HOME=/home/boutuser
WORKDIR /home/boutuser/BOUT-dev

RUN cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/opt/bout++/ \
RUN cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBOUT_GENERATE_FIELDOPS=OFF \
-DBOUT_USE_PETSC=ON -DPETSc_ROOT=/opt/petsc \
-DBOUT_USE_PETSC=ON -DPETSc_ROOT=/usr/local \
-DBOUT_ENABLE_PYTHON=ON \
-DBOUT_USE_SUNDIALS=ON -DSUNDIALS_ROOT=/usr/lib64/$MPI/ -DSUNDIALS_INCLUDE_DIR=/usr/include/$MPI-x86_64/sundials/ \
$CMAKE_OPTIONS || (cat /home/boutuser/BOUT-dev/build/CMakeFiles/CMake{Output,Error}.log ; exit 1)
$CMAKE_OPTIONS || (cat /home/boutuser/BOUT-dev/build/CMakeFiles/CMake{Output,Error}.log ; exit 1); \
make -C build -j 2 VERBOSE=1; \
sudo make -C build install; \
rm -rf build

# Add unversioned path for python
RUN sudo ln -s /usr/local/lib/python3.* /usr/local/lib/python3.x

RUN make -C build -j 2
RUN sudo make -C build install
ENV PATH=/usr/local/bin:$PATH \
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH \
PYTHONPATH=/usr/local/lib/python3.x/site-packages/:$PYTHONPATH

RUN find /opt/bout++
# smoke test
RUN python3 -c 'import boutpp'
18 changes: 18 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Clang-format whole repo
d8f14fdddb5ca0fbb32d8e2bf5ac2960d6ac5ce6
ed2117e6d6826a98b6988e2f18c0c34e408563b6
# CMake formatting
17ac13c28aa3b34a0e46dbe87bb3874f6b25e706
# Added by the bot
4b010b7634aee1045743be80c268d4644522cd29
52301380586fdbf890f620c04f689b08d89a6c34
a71cad2dd6ace5741a754e2ca7daacd4bb094e0e
83cf77923a4c72e44303354923021acf932b4fd2
2c2402ed59c91164eaff46dee0f79386b7347e9e
05b7c571544c3bcb153fce67d12b9ac48947fc2d
c8f38049359170a34c915e209276238ea66b9a1e
65880e4af16cb95438437bf057c4b9fdb427b142
d1cfb8abd6aa5c76e6c1a4d7ab20929c65f8afc2
8d5cb39e03c2644715a50684f8cd0318b4e82676
ec69e8838be2dde140a915e50506f8e1ce3cb534
f2bc0488a298f136294c523bc5ab4086d090059b
1b4707187a3a85126338303dc766280b8fb2dc56
b2e2f3575e68f771be2a4341af5fd14e2870469e
64e4285ec38569f66d31e589a4610cefd16d8076
33 changes: 33 additions & 0 deletions .github/workflows/auto-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: format-command

on:
pull_request:

jobs:
clang-format:
# Release candidate branches tend to have big PRs which causes all sorts of problems
if: ${{ !endsWith(github.head_ref, '-rc') }}
runs-on: ubuntu-latest
steps:
# Checkout the pull request branch, also include all history
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: "Set up Python"
uses: actions/setup-python@v6

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Install dev tools
run: uv sync --only-dev

- name: Check prek versions are up-to-date
run: uv tool run sync-with-uv --check --diff

- name: Run everything
run: uv tool run prek run --show-diff-on-failure --from-ref origin/${{ github.base_ref }}
46 changes: 0 additions & 46 deletions .github/workflows/black-fix.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/clang-format.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/clang-tidy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
if: ${{ !endsWith(github.head_ref, '-rc') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: true

- name: Run clang-tidy
uses: ZedThree/clang-tidy-review@v0.21.0
uses: ZedThree/clang-tidy-review@v0.23.1
id: review
with:
build_dir: build
Expand All @@ -46,4 +46,4 @@ jobs:
-DBOUT_UPDATE_GIT_SUBMODULE=OFF

- name: Upload clang-tidy fixes
uses: ZedThree/clang-tidy-review/upload@v0.21.0
uses: ZedThree/clang-tidy-review/upload@v0.23.1
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- next
# Add your branch here if you want containers for it
- db-WIP
- fix3121
- docker-ci

env:
Expand All @@ -26,11 +26,11 @@ jobs:
matrix:
mpi: [mpich]
metric3d:
- name: "With OpenMP"
- name: "With 3D Metrics"
cmake: ON
base_prefix: "openmp-"
base_prefix: ""
tag_prefix: "3d-"
- name: "Without OpenMP"
- name: "Without 3D Metrics"
cmake: OFF
base_prefix: ""
tag_prefix: ""
Expand All @@ -52,7 +52,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Log in to the Container registry
uses: docker/login-action@master
Expand All @@ -75,7 +75,7 @@ jobs:
build-args: |
BASE=${{ matrix.mpi }}-${{ matrix.metric3d.base_prefix }}${{ matrix.config.base_postfix }}-main
MPI=${{ matrix.mpi }}
CMAKE_OPTIONS=${{ matrix.config.options }} -DBOUT_ENABLE_METRIC_3D=${{ matrix.metric3d.cmake }} -DBOUT_ENABLE_OPENMP=${{ matrix.metric3d.cmake }}
CMAKE_OPTIONS=${{ matrix.config.options }} -DBOUT_ENABLE_METRIC_3D=${{ matrix.metric3d.cmake }}
COMMIT=${{ github.sha }}
URL=${{ github.server_url }}/${{ github.repository }}
context: .docker/fedora/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: always()

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: true
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
if: always()

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: true
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
if: always()

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: true
Expand Down
Loading
Loading