Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use embedding clr host in version 251 #926

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions doc/changelog.d/926.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use embedding clr host in version 251
10 changes: 6 additions & 4 deletions src/ansys/mechanical/core/embedding/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@
if version < 251:
os.environ["MECHANICAL_STARTUP_UNOPTIMIZED"] = "1"

# TODO - use this on linux as well
if version >= 251:
if "PYMECHANICAL_NO_CLR_HOST_LITE" not in os.environ:
os.environ["ANSYS_MECHANICAL_EMBEDDING_CLR_HOST"] = "1"
# Set an environment variable to use the custom CLR host
# for embedding.
# In the future (>251), it would always be used.
if version == 251:
if "PYMECHANICAL_NO_CLR_HOST_LITE" not in os.environ:
os.environ["ANSYS_MECHANICAL_EMBEDDING_CLR_HOST"] = "1"

Check warning on line 119 in src/ansys/mechanical/core/embedding/initializer.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mechanical/core/embedding/initializer.py#L118-L119

Added lines #L118 - L119 were not covered by tests


def __check_for_mechanical_env():
Expand Down
Loading