Skip to content

Commit

Permalink
bumped version to 24.2b1 (#188)
Browse files Browse the repository at this point in the history
* bumped version to 24.2b1

* added copy example mesh (#192)

* added copy mesh from example (#189)

* bumped version and added copy example  mesh

* added update path

* Fix crash when running _distribute_shared_output_fields with output_fields being None (#190) (#196)

* Fix the reconstructionGradientLimiter updater (#195) (#197)

* Fix the reconstructionGradientLimiter updater

* Comments addressed

* Let the class handle defaults

* Format

* Lint

---------

Co-authored-by: Ben <106089368+benflexcompute@users.noreply.github.com>
  • Loading branch information
maciej-flexcompute and benflexcompute committed Mar 11, 2024
1 parent af833be commit fdf0db9
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 18 deletions.
7 changes: 6 additions & 1 deletion flow360/component/flow360_params/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ def _no_update(params_as_dict):
return params_as_dict


UPDATE_MAP = [("0.2.0b16", "0.2.0b17", _no_update), ("0.2.0b17", "0.2.0b18", _no_update)]
UPDATE_MAP = [
("0.2.0b16", "0.2.0b17", _no_update),
("0.2.0b17", "0.2.0b18", _no_update),
("0.2.0b18", "23.3.2", _no_update),
("23.3.2", "24.2.0b2", _no_update),
]


def _find_update_path(version_from, version_to):
Expand Down
2 changes: 1 addition & 1 deletion flow360/examples/om6wing/case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ timeStepping:
timeStepSize: inf
unitSystem:
name: SI
version: 0.2.0b18
version: 24.2.0b1
2 changes: 1 addition & 1 deletion flow360/examples/om6wing/flow360.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"unitSystem": {
"name": "SI"
},
"version": "0.2.0b18",
"version": "24.2.0b2",
"geometry": {
"refArea": {
"value": 1.15315084119231,
Expand Down
2 changes: 1 addition & 1 deletion flow360/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
version
"""

__version__ = "0.2.0b18"
__version__ = "24.2.0b2"
2 changes: 1 addition & 1 deletion tests/data/cases/params_units.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"unitSystem": {
"name": "SI"
},
"version": "0.2.0b18",
"version": "24.2.0b2",
"geometry": {
"refArea": {
"value": 1.0,
Expand Down
4 changes: 2 additions & 2 deletions tests/ref/case_params/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"unitSystem": {
"name": "SI"
},
"version": "0.2.0b18",
"version": "24.2.0b2",
"geometry": {
"refArea": {
"value": 1.0,
Expand Down Expand Up @@ -149,5 +149,5 @@
}
}
},
"hash": "1bcb9beab809128a2a13215b9e6fa9adcfa38b8e14a4908d2f3654d4e476243b"
"hash": "641c0be8f4be4b621c49e6756e9693653538cd2ba06f68536a1aaeb5347dd8b3"
}
4 changes: 2 additions & 2 deletions tests/ref/case_params/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ geometry:
refArea:
units: 2*m**2
value: 1.0
hash: 1bcb9beab809128a2a13215b9e6fa9adcfa38b8e14a4908d2f3654d4e476243b
hash: 641c0be8f4be4b621c49e6756e9693653538cd2ba06f68536a1aaeb5347dd8b3
navierStokesSolver:
CFLMultiplier: 1.0
absoluteTolerance: 1.0e-10
Expand Down Expand Up @@ -108,7 +108,7 @@ timeStepping:
timeStepSize: inf
unitSystem:
name: SI
version: 0.2.0b18
version: 24.2.0b2
volumeOutput:
animationFrequency: -1
animationFrequencyOffset: 0
Expand Down
4 changes: 2 additions & 2 deletions tests/ref/case_params/params_units.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"unitSystem": {
"name": "SI"
},
"version": "0.2.0b18",
"version": "24.2.0b2",
"geometry": {
"refArea": {
"value": 1.0,
Expand Down Expand Up @@ -172,5 +172,5 @@
}
}
},
"hash": "ec9370fec15292d144313b6b4fe27f4ab3e15d426efc1c9d607aaf9ddf6f194e"
"hash": "6ef0186b53787336376eae93ee069b0f208f953c66446f51952bebcde709713d"
}
4 changes: 2 additions & 2 deletions tests/ref/case_params/params_units_converted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"unitSystem": {
"name": "SI"
},
"version": "0.2.0b18",
"version": "24.2.0b2",
"geometry": {
"refArea": {
"value": 1.0,
Expand Down Expand Up @@ -148,5 +148,5 @@
}
}
},
"hash": "b9b81f80723ba1a728afcffaa69255cd6dfa192ae94daf15cffbdc1b75382298"
"hash": "7b60f4352abf4dc50894123b7a4caa6127aeab84d4d4d95be2e9a5ffccd0ddd0"
}
2 changes: 1 addition & 1 deletion tests/test_flow360.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.2.0b18"
assert __version__ == "24.2.0b2"
8 changes: 4 additions & 4 deletions tests/test_handle_version_and_unit_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

params_current_version = {
"version": "0.2.0b18",
"version": "24.2.0b2",
"unitSystem": {"name": "SI"},
"boundaries": {},
"geometry": {
Expand All @@ -47,7 +47,7 @@
}

params_no_unit_system = {
"version": "0.2.0b18",
"version": "24.2.0b2",
"boundaries": {},
"geometry": {
"refArea": {"units": "m**2", "value": 1.15315084119231},
Expand All @@ -60,7 +60,7 @@
}

params_no_hash = {
"version": "0.2.0b18",
"version": "24.2.0b2",
"unitSystem": {"name": "SI"},
"boundaries": {},
"geometry": {
Expand All @@ -73,7 +73,7 @@
}

params_wrong_hash = {
"version": "0.2.0b18",
"version": "24.2.0b2",
"unitSystem": {"name": "SI"},
"boundaries": {},
"geometry": {
Expand Down

0 comments on commit fdf0db9

Please sign in to comment.