Skip to content

Difference between Linux and Windows #1389

@CCHEMAI

Description

@CCHEMAI

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

This simple code returns different output from Linux and Windows :

nodes = np.array([1, 2, 3, 4], dtype=int)
scop_Nodes = dpf.mesh_scoping_factory.nodal_scoping(nodes)
print(scop_Nodes.ids)

It seems to come from the type int (int32/int64).

Would it be possible to fix the ouput in Linux or document the behaviour?

Steps To Reproduce

-Run the following code in Windows then in Linux :

nodes = np.array([1, 2, 3, 4], dtype=int)
scop_Nodes = dpf.mesh_scoping_factory.nodal_scoping(nodes)
print(scop_Nodes.ids)

Which Operating System causes the issue?

Linux

Which DPF/Ansys version are you using?

Ansys 2024 R1

Which Python version causes the issue?

3.8

Installed packages

ansys-dpf-core
ansys-dpf-post

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions