Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
256 commits
Select commit Hold shift + click to select a range
a05441f
example_mehdi works with no error
mehdiataei Jan 26, 2024
71c952b
Added multi-GPU support and mlups computation
mehdiataei Jan 29, 2024
78e9536
Merge pull request #32 from mehdiataei/major-refactoring
mehdiataei Jan 29, 2024
2d8eb57
Added inline
mehdiataei Feb 5, 2024
a48510c
Added pallas but there is a shape issue yet
mehdiataei Feb 6, 2024
b4e13c6
first restructuring
loliverhennigh Feb 6, 2024
02fcbf5
almost finished bc
loliverhennigh Feb 13, 2024
6f35f02
almost finished
loliverhennigh Feb 14, 2024
18a13b8
structure fully in
loliverhennigh Feb 16, 2024
3d1245e
almost done
loliverhennigh Feb 21, 2024
93a130d
almost done
loliverhennigh Feb 21, 2024
05b87bf
stepper almost working
loliverhennigh Feb 22, 2024
9ebf244
parralization
loliverhennigh Feb 22, 2024
299c3cc
stepper functional
loliverhennigh Feb 28, 2024
6cb085a
Merge pull request #37 from loliverhennigh/warp_backend
mehdiataei Feb 28, 2024
cb8459c
fixed warp bug
loliverhennigh Feb 29, 2024
15c47f6
Merge pull request #38 from loliverhennigh/warp_backend
mehdiataei Feb 29, 2024
b62bab1
first commit
loliverhennigh Mar 7, 2024
5263007
bad merge
loliverhennigh Mar 7, 2024
7560115
Merge branch 'major-refactoring' of github.com:Autodesk/XLB into boun…
loliverhennigh Mar 7, 2024
414047d
boundary condition restructuring
loliverhennigh Mar 7, 2024
c715b69
base boundary condition structure
loliverhennigh Mar 11, 2024
9a29639
added boundar condition example
loliverhennigh Mar 25, 2024
5c4732f
LDC example
loliverhennigh Mar 26, 2024
0387247
Working!
loliverhennigh Mar 29, 2024
18abd12
Finalized changes
loliverhennigh Mar 30, 2024
d4d67b9
Merge pull request #40 from loliverhennigh/boundary_conditions
mehdiataei Mar 30, 2024
94fd5f0
added kbc
loliverhennigh Apr 8, 2024
ca969af
Merge pull request #41 from loliverhennigh/kbc_warp
mehdiataei Apr 8, 2024
6836b09
Fixed boundaries and added conformance test.
mehdiataei Apr 9, 2024
b581b16
added drivaer car
loliverhennigh Apr 15, 2024
19e93c0
Added tests for grid and equilibrium kernels
mehdiataei Apr 22, 2024
e33827a
WIP added tests for all main kernels + changes to operator + 2D kerne…
mehdiataei Apr 25, 2024
293d23c
LES model
loliverhennigh Apr 29, 2024
d37aa1e
WIP: Added lots of tests and fixed a bunch of errors
mehdiataei May 6, 2024
0534eb0
WIP added more tests
mehdiataei May 10, 2024
b4b825e
WIP added JAX planar masker and test is passing
mehdiataei May 10, 2024
f62d06c
WIP warp test for planar masker is passing now. Mask part is left for…
mehdiataei May 10, 2024
96759e9
WIP: Added more tests for planar masker
mehdiataei May 10, 2024
c05c0e8
Added half-way. Not tested yet.
mehdiataei May 28, 2024
2d0aa5f
Added trackback to the error.
mehdiataei May 28, 2024
66a9fc2
Refactoring done (single-GPU). Multi-GPU will be pushed soon.
mehdiataei May 30, 2024
b36b053
WIP distribute function. Warp backend closure issues are mostly fixe…
mehdiataei Jun 18, 2024
346b2e5
Fixed distributed errors and added mlups 3D
mehdiataei Jun 27, 2024
4c5b1c2
Fixed bugs + wind tunnel and flow over sphere examples
mehdiataei Jun 28, 2024
179ae0b
Fixed a minor bug for JAX backend
mehdiataei Jun 28, 2024
a10e4a8
Added KBC and wind tunnel at high Re
mehdiataei Jun 28, 2024
327b19f
WIP: testing a new way of setting up BCs
hsalehipour Jul 12, 2024
6be3495
Fixed a few bugs. JAX works. Need to look into Warp next
hsalehipour Jul 15, 2024
3a9a97e
Warp working with the new BC setup
hsalehipour Jul 16, 2024
9b9b184
converting the example script to be class-based
hsalehipour Jul 16, 2024
1b31ccf
updated all examples to run properly
hsalehipour Jul 16, 2024
f42f245
All pytest unit tests pass now!
hsalehipour Jul 16, 2024
83abb38
addressing comments during the PR review and more clean-up
hsalehipour Jul 19, 2024
fc87b9b
Merge pull request #49 from hsalehipour/test_new_bc_setup
mehdiataei Jul 19, 2024
6f7397e
Removed the need to pass sharding_flag in for distributed workload
mehdiataei Jul 29, 2024
987d136
Merge pull request #51 from mehdiataei/major-refactoring
mehdiataei Jul 30, 2024
e2616bd
somewhat improved bc handling using structs
hsalehipour Jul 30, 2024
8c2bc40
minor clean up. Warp MLUPs is not affected.
hsalehipour Jul 30, 2024
d6e265d
modified BC kernels kernels in warp to resemble jax and also NSE kern…
hsalehipour Jul 31, 2024
50cc016
Fixed precision policy properties
mehdiataei Aug 1, 2024
59407ea
Merge branch 'Autodesk:major-refactoring' into major-refactoring
mehdiataei Aug 1, 2024
9822d4f
Removed deprecated sharding_flags
mehdiataei Aug 1, 2024
d7b35b3
Merge pull request #53 from mehdiataei/major-refactoring
hsalehipour Aug 2, 2024
a9f35fc
WIP: fixing missing mask in both jax and warp
hsalehipour Aug 2, 2024
1b17945
WIP: making the signature of all BC functional consistent in Warp
hsalehipour Aug 2, 2024
a2ec3a2
fix a bug in the latest jax implementation of indices_masker
hsalehipour Aug 2, 2024
1810e9c
Fixed distribute and post processing bugs
mehdiataei Aug 2, 2024
0da352b
Merge pull request #54 from mehdiataei/major-refactoring
hsalehipour Aug 2, 2024
aeb1770
Added ruff
mehdiataei Aug 2, 2024
e07976e
Merge pull request #55 from mehdiataei/major-refactoring
hsalehipour Aug 2, 2024
9375832
Merge branch 'refactoring-origin' into refactoring-hesam
hsalehipour Aug 2, 2024
d55a438
added missing ruff formatting
hsalehipour Aug 2, 2024
2d4f6d6
Merge branch 'fix_missingMask' into missingMask
hsalehipour Aug 2, 2024
329bd4c
Warp structs (#56)
hsalehipour Aug 2, 2024
5fa63f5
major improvements to Warp impl of BC. all consistent now.
hsalehipour Aug 3, 2024
67d7a19
major improvements to Warp impl of BC. all consistent now.
hsalehipour Aug 4, 2024
27e5d66
Merge branch 'missingMask' into major-refactoring
hsalehipour Aug 4, 2024
025c28e
ZouHe BC added in JAX
hsalehipour Aug 7, 2024
0539f61
Merge pull request #57 from hsalehipour/major-refactoring
mehdiataei Aug 8, 2024
90969d1
added some warp helper functions in the BoundaryCondition class to re…
hsalehipour Aug 7, 2024
4c6d7d5
added ZouHe in warp
hsalehipour Aug 9, 2024
310aa37
added a new macroscopic operator to compute second moments
hsalehipour Aug 14, 2024
18368d8
Merge pull request #58 from hsalehipour/RegularizedBC
mehdiataei Aug 14, 2024
9fe1a61
fixed a subtle bug in ZouHe (JAX)
hsalehipour Aug 15, 2024
12b5f3d
WIP: regularized initial commit
hsalehipour Aug 15, 2024
4b230cb
improving the call to BC functionals in Warp
hsalehipour Aug 15, 2024
3f0cda3
fixed a nasty bug with struct type
hsalehipour Aug 15, 2024
0ddfb2b
fixed a really gnarly bug in ZouHe (Warp)
hsalehipour Aug 16, 2024
398092d
Regularized (JAX) works!
hsalehipour Aug 16, 2024
3d54ffa
some cleanup and rearrangement
hsalehipour Aug 16, 2024
b15bb05
Regularized (Warp) also completed and verified!
hsalehipour Aug 16, 2024
4cecd27
consistent naming for Moments. Macroscopic is now an alias for zeroth…
hsalehipour Aug 18, 2024
76597d4
used lax.broadcast_in_dim instead of jnp.repeat plus other minor changes
hsalehipour Aug 20, 2024
9232ace
Merge pull request #59 from hsalehipour/RegularizedBC
hsalehipour Aug 20, 2024
77f17ca
minor bugs
hsalehipour Aug 20, 2024
f83dcce
WIP: extrapolation outflow bc initial commit
hsalehipour Aug 20, 2024
b20b2af
Extrapolation outflow BC added in Warp
hsalehipour Aug 21, 2024
c3db21c
added ExtrapolationOutflow (JAX)
hsalehipour Aug 26, 2024
25fbef8
corrected the extrapolation BC but MLUPS drop of 12%
hsalehipour Aug 26, 2024
8a4c7cd
fixed the performance issue. All great now!
hsalehipour Aug 26, 2024
d178de3
Merge branch 'correct_ExtrapolationOutflow_Warp' into dev
hsalehipour Aug 26, 2024
14051ce
fixed minor syntax bugs
hsalehipour Aug 26, 2024
2cd61fd
minor refactoring
hsalehipour Aug 26, 2024
fbcf525
weird nan bug in Reg/Zouhe fixed. Python pointer issue!
hsalehipour Aug 27, 2024
91c706a
modified the sequence of lbm step operators in JAX to match stream-th…
hsalehipour Aug 27, 2024
c0e3117
WIP: initial commit for force computation using momentum exchange method
hsalehipour Aug 27, 2024
23dd4e0
WIP: using stl_boundary_masker for reading STL geometries
hsalehipour Aug 27, 2024
47a5f26
renamed boundary_mask to boundary_map
hsalehipour Aug 27, 2024
1db3242
WIP: changed mesh_boundary_masker and used it in the wind tunnel example
hsalehipour Aug 28, 2024
8a2255f
applied changes requested in the PR review
hsalehipour Aug 29, 2024
31895f9
Merge branch 'PR_review' into dev
hsalehipour Aug 29, 2024
18c8ee5
mesh_boundary_masker working as expected and added to the wind tunnel…
hsalehipour Aug 29, 2024
0adb6f7
added drag and force calculation to the windtunnel example.
hsalehipour Aug 29, 2024
74bd907
Merge pull request #60 from hsalehipour/dev
mehdiataei Aug 29, 2024
60aad2e
now indices_boundary_masker also handles boundary geometries in the i…
hsalehipour Aug 30, 2024
f16c4b9
Merge branch 'stl_handling' into dev
hsalehipour Aug 30, 2024
2a3e6c6
Fixing the syntax error in Warp when bc list is empty. When empty, pe…
hsalehipour Aug 30, 2024
fe8c945
Merge pull request #61 from hsalehipour/dev
mehdiataei Sep 5, 2024
7a7399d
fixing the issue for cases where internal geometry contacts the domai…
hsalehipour Sep 6, 2024
431b855
minor renaming for clarity
hsalehipour Sep 6, 2024
721dc0e
renaming boundary_map to bc_id
hsalehipour Sep 9, 2024
aaff2c3
added exact difference forcing scheme
hsalehipour Sep 9, 2024
d96a394
ported the benchmark example of turbulent channel flow.
hsalehipour Sep 10, 2024
e21780e
Removed the need to have separate JAX/Warp constants
mehdiataei Sep 13, 2024
fd759d3
Renamed _c32
mehdiataei Sep 13, 2024
9a37ab3
Renamed _c32
mehdiataei Sep 13, 2024
db392f1
Removed instances of fp32
mehdiataei Sep 13, 2024
2fd397e
Merge branch 'major-refactoring' of https://github.com/mehdiataei/XLB…
mehdiataei Sep 13, 2024
e2028cb
Operators work in fp64 and fp64 with no issues
mehdiataei Sep 13, 2024
a396328
Merge pull request #62 from mehdiataei/major-refactoring
hsalehipour Sep 13, 2024
e8a9a88
Merge branch 'major-refactoring' into dev
hsalehipour Sep 16, 2024
b85ab6a
fixing merge issues
hsalehipour Sep 16, 2024
a7de4bb
resolved all unit test issues
hsalehipour Sep 16, 2024
1fa7ad6
fixed dtype issues for fp64
hsalehipour Sep 16, 2024
d6db85d
used numpy instead of lists for finding boundingBox indices
hsalehipour Sep 16, 2024
29aa3a2
renaming to bc_mask
hsalehipour Sep 16, 2024
3ff0814
Merge pull request #63 from hsalehipour/dev
mehdiataei Sep 18, 2024
c4c994b
Separated zero and first kernels
mehdiataei Sep 19, 2024
e6de337
Deleted old file
mehdiataei Sep 20, 2024
448883f
Changed rho type
mehdiataei Sep 20, 2024
834da9a
Merge pull request #65 from mehdiataei/major-refactoring
hsalehipour Sep 20, 2024
6eca3f2
Merge branch 'main' of https://github.com/mehdiataei/XLB into major-r…
mehdiataei Sep 23, 2024
9496f6f
Fixed mixed-precision for Warp
mehdiataei Sep 24, 2024
60e95f7
Merge pull request #67 from mehdiataei/major-refactoring
hsalehipour Sep 24, 2024
53910bc
minor renaming
hsalehipour Sep 26, 2024
b913f35
WIP: adding boundary_distance for curved and moving boundaries
hsalehipour Sep 26, 2024
8cfbd50
storing mesh distance in f_0
hsalehipour Sep 29, 2024
9cb6bf3
renaming file
hsalehipour Sep 29, 2024
cc09003
WIP: reformulated Grads BC
hsalehipour Sep 30, 2024
6e32706
major improvement to BC functionals and nse_stepper
hsalehipour Oct 1, 2024
8c0fe1d
finalizing reformulated Grads BC
hsalehipour Oct 1, 2024
0448d2b
fixed out-of-bound issues and added large bc_id for skipping lbm on …
hsalehipour Oct 2, 2024
ad33b3e
adding a flag to assert mesh distance masker is used for bc_grads
hsalehipour Oct 2, 2024
9748480
fixing some remaining type issues
hsalehipour Oct 3, 2024
eb26a59
Finalized a novel hybrid interpolated bounceback and regularized bc f…
hsalehipour Oct 3, 2024
0dbe840
added necessary changes to the nse_stepper
hsalehipour Oct 3, 2024
371dfd8
added not implemented error for 2d settings
hsalehipour Oct 3, 2024
a18eea4
Merge branch 'GradApprox' into major-refactoring
hsalehipour Oct 3, 2024
96d80f0
fixed ruff issue and commented out the perf drop lines
hsalehipour Oct 3, 2024
0f912d4
enabled the new BC to work with indices bc masker
hsalehipour Oct 4, 2024
f215c5b
added recent changes to the momentum exchange method
hsalehipour Oct 4, 2024
a786ccd
missed from prev commit
hsalehipour Oct 4, 2024
a50fbbd
Merge pull request #68 from hsalehipour/major-refactoring
mehdiataei Oct 5, 2024
1d1560b
Significantly simplified boundary application
mehdiataei Oct 6, 2024
d73a6d6
Fixed zouhe and regularized bcs but there are limitations in applying…
mehdiataei Oct 7, 2024
0123748
Extremely simplified BC implementation!
mehdiataei Oct 8, 2024
3843188
Merge pull request #69 from mehdiataei/major-refactoring
hsalehipour Oct 8, 2024
e16ba24
fixed race conditioning in indices_boundary_masker due to duplicate b…
hsalehipour Oct 18, 2024
bd62072
fixed a bug in 2d kbc warp
hsalehipour Oct 18, 2024
ec68bfc
moved np.unique to examples and a helper function
hsalehipour Oct 18, 2024
8f869d2
minor
hsalehipour Oct 18, 2024
cee77b9
addressing PR reviews
hsalehipour Oct 18, 2024
de67c09
merged 2D and 3D Warp kernels
mehdiataei Oct 18, 2024
3a19a42
Fixed conflicts
mehdiataei Oct 18, 2024
c0ea2a5
Changed the exmaple mesh address
mehdiataei Oct 18, 2024
27c0205
Fixed ruff issue
mehdiataei Oct 18, 2024
ed5f643
Added back BC kernels in an abstract manner
mehdiataei Oct 21, 2024
55e2921
Merge pull request #75 from mehdiataei/major-refactoring
hsalehipour Oct 21, 2024
24f0ff5
Merge pull request #76 from Autodesk/major-refactoring
mehdiataei Oct 22, 2024
9f6f9a5
Added setup for packaging
mehdiataei Oct 22, 2024
7e1d9d5
Merge pull request #77 from mehdiataei/main
mehdiataei Oct 22, 2024
eba8aff
Added Oliver to contributor list, added CHANGELOG, updated README, ad…
mehdiataei Oct 22, 2024
cc33309
Fixed mkdocs build
mehdiataei Oct 22, 2024
ccbee2b
Merge pull request #80 from mehdiataei/main
hsalehipour Oct 22, 2024
51a3735
JAX installation is now handled correctly for different configuration…
mehdiataei Oct 24, 2024
d2c15c8
Added contributing detailed instructions
mehdiataei Oct 24, 2024
b52d179
Merge pull request #81 from mehdiataei/contributing_inst
mehdiataei Oct 24, 2024
2f75108
Merge pull request #82 from mehdiataei/fix_mac
mehdiataei Oct 24, 2024
7a8eac1
Applying ruff format to the all repo.
massimim Oct 25, 2024
00c24e3
Merge pull request #84 from Autodesk/ruff-format
mehdiataei Oct 25, 2024
e04f6eb
Fixed 2d bugs in Warp backeneds in pytest, KBC and bc_regularized
hsalehipour Oct 25, 2024
39d62a7
Addressing PR reveiew comments
hsalehipour Oct 29, 2024
8eb7024
Merge pull request #85 from hsalehipour/main
mehdiataei Oct 31, 2024
2541709
Added explanation on how to combine commits and fixed the PR template…
mehdiataei Nov 4, 2024
2b6355b
Merge pull request #88 from mehdiataei/contributing_reset
mehdiataei Nov 4, 2024
877433a
Added abstraction layer for boundary condition application and steppe…
mehdiataei Nov 28, 2024
f7bed81
Merge pull request #86 from mehdiataei/profile_inlet
mehdiataei Dec 5, 2024
2f8ffe8
Get ready for 0.2.1 release. Fixed a bug when running JAX on Mac (CPU).
mehdiataei Dec 5, 2024
237ac22
Merge pull request #95 from mehdiataei/main
mehdiataei Dec 6, 2024
83f3683
Added a faster and more accurate algorithm for mesh_boundary_masker
hsalehipour Dec 19, 2024
6c457a6
fixed two bugs: printing the available devices and accounting for int…
hsalehipour Dec 19, 2024
bf2a8b9
Merge pull request #97 from hsalehipour/bug_fix
mehdiataei Dec 19, 2024
c48e0ec
Merge pull request #96 from hsalehipour/new_mesh_masker
mehdiataei Dec 19, 2024
77ecdf6
Used center of f_1 as an additional storage and also fixed some bugs
hsalehipour Dec 22, 2024
5340e6c
Merge pull request #99 from hsalehipour/improved_bc_encoding
hsalehipour Jan 2, 2025
e32a41d
Added a helper function for BCs to avoid repeated definition of ident…
hsalehipour Dec 19, 2024
b54013b
Merge pull request #98 from hsalehipour/bc_warp_function_helper
hsalehipour Jan 7, 2025
c87b3a5
Moved omega from an attribute of the collision and stepper operations…
hsalehipour Jan 3, 2025
d4a92bc
Merge pull request #100 from hsalehipour/omega_stepper_input
hsalehipour Jan 10, 2025
d490dbb
added sphere
loliverhennigh Jan 15, 2025
3882ba5
added sphere
loliverhennigh Jan 15, 2025
585d54b
Implemented voxel-mesh interaction
nmorrisad Jan 10, 2025
4fe0905
Fixed the momentum exchange method in the JAX backend.
hsalehipour Jan 8, 2025
4e96b9d
Merge pull request #101 from hsalehipour/fix_jax_momentum_exchange
hsalehipour Jan 17, 2025
0cd49de
Merge pull request #102 from BIackthorn/feature-voxel-intersect
hsalehipour Jan 17, 2025
1d044b3
out of core stuff
loliverhennigh Jan 27, 2025
a3f1b17
Converted examples to functional. Made compute_backend name consistent
mehdiataei Jan 16, 2025
cfb4cfb
Merge pull request #105 from mehdiataei/functional_examples
mehdiataei Feb 4, 2025
a721cae
all together
loliverhennigh Feb 10, 2025
a69067a
Added synchronization to fix a strange i/o behaviour when Warp backen…
hsalehipour Feb 13, 2025
7cba264
small ldc video maker
loliverhennigh Feb 14, 2025
274e332
small ldc video
loliverhennigh Feb 14, 2025
09a4648
Merge pull request #110 from hsalehipour/main
hsalehipour Feb 14, 2025
0261ef4
Added wind turbine gif
mehdiataei Mar 17, 2025
ead7d0d
Merge pull request #116 from mehdiataei/main
mehdiataei Mar 17, 2025
1a8119e
added basics
loliverhennigh Apr 9, 2025
79127be
added basics
loliverhennigh Apr 9, 2025
5813b40
Improved KBC performance
hsalehipour May 13, 2025
5557e57
Merge pull request #124 from hsalehipour/kbc_perf_improvement
hsalehipour May 21, 2025
9a1bc61
update cla bot
gtmanfred Aug 7, 2025
99d7c51
beep boop
loliverhennigh Sep 8, 2025
9395c0a
updated
loliverhennigh Sep 8, 2025
ab0190f
finalized
loliverhennigh Sep 10, 2025
f9de8ae
removed refactor
loliverhennigh Sep 10, 2025
3615687
undid changes
loliverhennigh Sep 10, 2025
c047cf2
added nvidia mesh
loliverhennigh Sep 10, 2025
9782340
Merge pull request #142 from loliverhennigh/wind_tunnel
mehdiataei Sep 29, 2025
74755fd
Fixed a bug in main that was preventing all regular warp runs!
hsalehipour Oct 16, 2025
9bac110
fixed some pytests issues that been remained unchecked in main for a …
hsalehipour Oct 16, 2025
2fbc7a0
Added pull and push as a two methods for streaming scheme of JAX back…
hsalehipour Oct 16, 2025
4e3f6cc
fixed ruff issues in all out of core files
hsalehipour Oct 16, 2025
f7e1b9d
Merge pull request #143 from hsalehipour/push_pull
hsalehipour Oct 16, 2025
572c983
Immersed Boundary Method Implementation with Examples and USD Support…
mehdiataei Nov 21, 2025
ba458b5
Ready for 0.3.0 release (#145)
mehdiataei Nov 21, 2025
c25c319
Fixed Smagorinsky implementation and added jax version (#150)
mehdiataei Jan 12, 2026
1bd39e8
Bump version to 0.3.1 (#151)
mehdiataei Jan 12, 2026
ec0f07e
Removed deprecated functions (#154)
mehdiataei Jan 20, 2026
3f8b350
Multi-res grid refinement + Neon backend support (#159)
hsalehipour May 14, 2026
9470e54
feat: add Differentiable LBM example for inverse problem solving (JAX…
Medyan-Naser May 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## Contributing Guidelines

<!-- Please make sure you have read and understood our contributing guidelines before submitting this PR -->
- [ ] I have read and understood the [CONTRIBUTING.md](https://github.com/Autodesk/XLB/blob/main/CONTRIBUTING.md) guidelines


## Description

<!--
Thank you for your contribution! Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
-->


## Type of change

<!-- Please select the options that are relevant. -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update

## How Has This Been Tested?

<!-- Please describe the tests that you ran to verify your changes. Provide instructions so others can reproduce. Include details of your test environment, and the test cases you ran.

- [ ] Test A
- [ ] Test B
-->
- [ ] All pytest tests pass

<!-- To run the tests, execute the following command from the root of the repository:

```bash
pytest
```
-->


## Linting and Code Formatting

Make sure the code follows the project's linting and formatting standards. This project uses **Ruff** for linting.

To run Ruff, execute the following command from the root of the repository:

```bash
ruff check .
```

<!-- You can also fix some linting errors automatically using Ruff:

```bash
ruff check . --fix
```
-->

- [ ] Ruff passes
12 changes: 10 additions & 2 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ jobs:
CLA-Assistant:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.CLA_BOT_APP_ID }}
private-key: ${{ secrets.CLA_BOT_PRIVATE_KEY }}
owner: Autodesk
repositories: |
CLA-Signatures
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/github-action@v2.3.0
uses: contributor-assistant/github-action@v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOT_SECRET }}
PERSONAL_ACCESS_TOKEN: ${{ steps.app-token.outputs.token }}
with:
remote-repository-name: 'CLA-Signatures'
remote-organization-name: 'Autodesk'
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
pull_request:
branches:
- major-refactoring # Remember to add main branch later

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff

- name: Run Ruff
run: ruff check .
1 change: 0 additions & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: mkdocs-deployment
on:
push:
branches:
- master
- main
# paths:
# - 'docs/**'
Expand Down
27 changes: 25 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Thumbs.db
__pycache__/
*.py[cod]
*$py.class

**pyc
# C extensions
*.so

Expand Down Expand Up @@ -131,6 +131,8 @@ venv/
ENV/
env.bak/
venv.bak/
.xlb-env/
.xlb_install_test_venvs/

# Spyder project settings
.spyderproject
Expand All @@ -149,4 +151,25 @@ dmypy.json


# Checkpoints (default dir for XLB)
checkpoints/*
checkpoints/*

# Ignore Python packaging build directories
dist/
build/
*.egg-info/
*.dot

# Ignore h5 and xmf formats
*.h5
*.xmf

# Ignore CSV files
*.csv

# USD files
*.usd
*.usda
*.usdc
*.usd.gz
*.usd.zip
*.usd.bz2
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
hooks:
- id: ruff
args: [--fix]
4 changes: 3 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
# For a comprehensive view of all contributors, please refer to the revision history in the source control.

Mehdi Ataei (Autodesk Inc)
Hesam Saleipour (Autodesk Inc)
Hesam Saleipour (Autodesk Inc)
Oliver Hennigh (NVIDIA)
Massimiliano Meneghin (Autodesk Inc)
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- _No changes yet_ <!-- Placeholder for future changes -->


## [0.2.1] - 2024-12-05

### Fixed
- mkdocs is now configured correctly for the new project structure
- JAX installation is now handled correctly for different configurations (CPU, CUDA, TPU)
- Fixed a couple of bugs in 2D regularied_bc and kbc (Warp) that emerged after merging 2d and 3d kernels

### Added

- Added abstraction layer for boundary condition efficient encoding/decoding of auxiliary data
- Added the capability to add profiles to boundary conditions
- Added prepare_fields method to the Stepper class to allow for more automatic preparation of fields

## [0.2.0] - 2024-10-22

### Added
- XLB is now installable via pip
- Complete rewrite of the codebase for better modularity and extensibility based on "Operators" design pattern
- Added NVIDIA's Warp backend for state-of-the-art performance
147 changes: 147 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,150 @@ If you would like to contribute your code to XLB, you should:


When you submit your code, please include relevant tests as part of the pull request, and ensure that your comments and coding style align with the rest of the project. You can refer to the existing code for examples of the testing and style practices that the project follows.

Important: Ensure that your commits are atomic and self-contained. Each PR should only make a single, cohesive change. You should also squash your commits into a single commit as described below before submitting your PR.

## Detailed Contribution Guidelines

### 1. Setup Your Local Environment

- **Clone Your Fork:**
If you haven't yet cloned your copy of the repository, you can do so with the following command:

```bash
git clone https://github.com/Autodesk/XLB
cd XLB
```

- **Add Upstream Remote:** Set up the upstream remote to track the original repository.

```bash
git remote add upstream https://github.com/Autodesk/XLB
```

You can check your remotes to ensure everything is set up correctly:

```bash
git remote -v
```

### 2. Syncing Your Main Branch with Upstream

- **Fetch Updates from Upstream:**
To keep your local repository up to date with the upstream `main` branch:

```bash
git fetch upstream
```

- **Sync Your Main Branch:**
Checkout to your local `main` and merge the upstream changes to ensure it's always up to date:

```bash
git checkout main
git merge upstream/main
```

- **Push to Your Fork (Optional):**
It is a good practice to also keep the fork on GitHub in sync:

```bash
git push origin main
```

### 3. Create a Feature Branch for Your Contribution

- **Create and Checkout a New Branch:**
Always work on a new branch for each feature or issue to keep things organized:
```bash
git checkout -b <feature_branch_name>
```
Choose a descriptive branch name that makes it clear what your contribution is.

### 4. Make Your Changes

- **Make Changes and Commit:**
Make all the changes you need, then stage and commit them:

```bash
git add .
git commit -m "Description of the changes made"
```

- **Amend or Squash Commits (Optional):**
If you need to update the commit message or add more changes before pushing, you can amend your commit:

```bash
git add .
git commit --amend
```

This will let you update the commit message or include additional changes in a single commit.

To consolidate your existing commits into a single PR, first, you need to reset your branch to the point where you want the single commit to start from (likely the last commit on origin/main before your work began).

```bash
git reset --soft <commit-id>
```

Replace `<commit-id>` with the hash of the commit that should be the base of your PR (it is likely the last commit on origin/main before your changes, use that ID).

Now, all your work will be staged as if it’s a single set of changes. You can commit this with a new message that represents the combined work.

```bash
git commit -m "Combined changes"
```

Finally, you can push your changes to your fork with the following command:

```bash
git push --force origin <feature_branch_name>
```

### 5. Pushing Your Branch and Creating a Pull Request

- **Push Your Branch to Your Fork:**

```bash
git push origin <feature_branch_name>
```

- **Create a Pull Request (PR):**
Go to the repository on GitHub, and you should see an option to create a Pull Request from your recently pushed branch. Follow the steps to create the PR.

### 6. Handling Feedback and Updating PR

- **Make Changes Based on Feedback:**
If changes are requested in the PR, make those changes in your local branch and amend the commit if needed:
```bash
git add .
git commit --amend
git push --force origin <feature_branch_name>
```
The `--force` flag is necessary because you amended an existing commit, and you need to update the remote branch accordingly.

### 7. Finalizing and Merging

- **Squash Commits on Maintainer Side:**
When the PR is ready to be merged, the maintainer *will* squash multiple commits into a single one, or you can amend and force push until only a single commit is present.

- **Sync Your Fork Main Branch Again:**
Once your PR is merged, make sure to sync your local and forked `main` branch again:

```bash
git checkout main
git fetch upstream
git merge upstream/main
git push origin main
```

### 8. Start a New Contribution

- **Create a New Branch:**
For each new contribution, repeat the branching step:
```bash
git checkout main
git checkout -b <new_feature_branch>
```
---
This workflow ensures every contribution is separate and cleanly managed.
Loading
Loading