Skip to content

Commit

Permalink
Added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiataei committed Nov 1, 2024
1 parent ca198e3 commit d18bab1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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
- Added abstraction layer for boundary condition efficient encoding/decoding of auxiliary data
- Added the capability to add profiles to boundary conditions
5 changes: 5 additions & 0 deletions xlb/operator/stepper/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def __init__(self, operators, boundary_conditions):
from xlb.operator.boundary_condition.boundary_condition_registry import boundary_condition_registry

self.operators = operators

for bc in boundary_conditions:
if bc.needs_aux_init and not bc.is_initialized_with_aux_data:
raise RuntimeError(f"Boundary condition {bc.__class__.__name__} requires auxiliary data initialization but was not initialized")

self.boundary_conditions = boundary_conditions

# Get velocity set, precision policy, and compute backend
Expand Down

0 comments on commit d18bab1

Please sign in to comment.