Skip to content

Commit 4e93bf7

Browse files
feat: running MPI fix only if on windows (#3575)
* feat: running MPI fix only if on windows * chore: adding changelog file 3575.miscellaneous.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 76d8ee7 commit 4e93bf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: running MPI fix only if on windows

src/ansys/mapdl/core/launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,8 @@ def set_MPI_additional_switches(
914914
add_sw_lower_case = add_sw.lower()
915915

916916
# known issues with distributed memory parallel (DMP)
917-
if "smp" not in add_sw_lower_case: # pragma: no cover
918-
if _HAS_ATP and os.name == "nt":
917+
if os.name == "nt" and "smp" not in add_sw_lower_case: # pragma: no cover
918+
if _HAS_ATP:
919919
condition = not force_intel and version and (222 > version >= 210)
920920
else:
921921
warnings.warn(

0 commit comments

Comments
 (0)