Skip to content

Commit

Permalink
Update version to dev11 (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninad-kamat authored Jan 10, 2024
1 parent 1d4b43b commit 56de400
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "ansys-meshing-prime"
version = "0.5.0.dev10"
version = "0.5.0.dev11"
description = "PyPrimeMesh is a Python client to Ansys Prime Server, which delivers core Ansys meshing technology."
readme = "README.md"
requires-python = ">=3.8,<4"
Expand Down
6 changes: 3 additions & 3 deletions src/ansys/meshing/prime/autogen/thinvolumecontrolstructs.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
imprint_sides: bool, optional
Checks whether to imprint quad faces on side zonelets.
n_ignore_rings: int, optional
Number of layers to ignore when no imprint on sides.
Number of rings of cells at the sides to ignore when no imprint on sides. Volume fill type will be used in this buffer region at the thin volume sides to transition to thin volume mesh internally.
json_data: dict, optional
JSON dictionary to create a ThinVolumeMeshParams object with provided parameters.
Expand Down Expand Up @@ -92,7 +92,7 @@ def set_default(
imprint_sides: bool, optional
Checks whether to imprint quad faces on side zonelets.
n_ignore_rings: int, optional
Number of layers to ignore when no imprint on sides.
Number of rings of cells at the sides to ignore when no imprint on sides. Volume fill type will be used in this buffer region at the thin volume sides to transition to thin volume mesh internally.
"""
args = locals()
[ThinVolumeMeshParams._default_params.update({ key: value }) for key, value in args.items() if value is not None]
Expand Down Expand Up @@ -147,7 +147,7 @@ def imprint_sides(self, value: bool):

@property
def n_ignore_rings(self) -> int:
"""Number of layers to ignore when no imprint on sides.
"""Number of rings of cells at the sides to ignore when no imprint on sides. Volume fill type will be used in this buffer region at the thin volume sides to transition to thin volume mesh internally.
"""
return self._n_ignore_rings

Expand Down
5 changes: 5 additions & 0 deletions src/ansys/meshing/prime/internals/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def launch_server_process(
kw = {}

enable_python_server = kw.get('server', 'release')
scheduler = kw.get('scheduler', None)

if not isinstance(enable_python_server, str):
raise ValueError(
'Hidden option to run python server needs to be a string.'
Expand All @@ -125,6 +127,9 @@ def launch_server_process(
if n_procs is not None and isinstance(n_procs, int):
server_args.append(f'-np')
server_args.append(f'{n_procs}')
if scheduler is not None:
server_args.append(f'--scheduler')
server_args.append(f'{scheduler}')

kwargs = {
'stdin': subprocess.DEVNULL,
Expand Down

0 comments on commit 56de400

Please sign in to comment.