Skip to content
Merged
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee

### Added
- Add usage of cli under embedding ([#650](https://github.com/ansys/pymechanical/pull/650))
- Block 32 bit python for embedding ([#647](https://github.com/ansys/pymechanical/pull/647))

### Fixed
- Fixed make pdf action in doc build ([#652](https://github.com/ansys/pymechanical/pull/652))
Expand All @@ -21,7 +22,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee
## [0.10.8](https://github.com/ansys/pymechanical/releases/tag/v0.10.8) - March 18 2024

### Added
- add poster ([#642](https://github.com/ansys/pymechanical/pull/642))
- Add poster ([#642](https://github.com/ansys/pymechanical/pull/642))
- Add LS Dyna unit test ([#584](https://github.com/ansys/pymechanical/pull/584))

### Fixed
Expand Down
10 changes: 10 additions & 0 deletions src/ansys/mechanical/core/embedding/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,18 @@ def _get_default_version() -> int:
return int_version


def __check_python_interpreter_architecture():
"""Embedding support only 64 bit architecture."""
import platform

if platform.architecture()[0] != "64bit":
raise Exception("Mechanical Embedding requires a 64-bit Python environment.")


def initialize(version=None):
"""Initialize Mechanical embedding."""
__check_python_interpreter_architecture() # blocks 32 bit python

global INITIALIZED_VERSION
if INITIALIZED_VERSION != None:
assert INITIALIZED_VERSION == version
Expand Down