ModelCenter

ModelCenter

ModelCenter Tech Note Unexpected results when linking a double array to an integer array

Tagged:

    • FAQFAQ
      Participant

      Date: May 30, 2018

      Product: Ansys ModelCenter

      Severity: High

      Introduction: When linking a double array to an integer array, values will be truncated. If the value
      overflows, the integer array may be populated with random data.

      Issue: The conversion behavior when linking a non-array double to a non-array integer is different
      from the conversion behavior when linking a double array to an integer array.
      If a non-array double is linked to a non-array integer, the value is rounded. If the value is too large to
      fit in the integer, the user will receive an overflow error and the link will be left invalid.
      However, if a double array is linked to an integer array, the values are truncated. If the value overflows,
      the integer array will be populated with random data.

      Impact: If a double array is linked to an integer array, the user may get unexpected results.
      Resolution: Avoid linking double arrays to integer arrays. If it is necessary to link double arrays to
      integer arrays, use extreme caution and make sure the conversion rules described above are
      understood.

      For more information contact Support at PHX-Support@ansys.com or 800-500-1936 Option 2