Tutorial Toolkit Function Descriptions > Utilities > Arrays
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Arrays
  
array_copy_real
(array1, array2, n)
Description:
This function copies all n elements from real array array1 to real array array2.
Input:
REAL
array1(n)
Source array.
INTEGER
n
Number of elements in source array.
Output:
REAL
array2(n)
Resultant array.
Error Condition:
None
Example:
Please see array_copy_real (p. 1420) in the MSC Acumen Toolkit - Code Example.
  
array_del_zero_int
(array, numval)
Description:
This function deletes all zeros from an integer array.
Input:
INTEGER ARRAY
array(numval)
Source array.
INTEGER
numval
Number of elements in source array.
Output:
INTEGER ARRAY
array(numval)
Resultant array with zeros deleted.
INTEGER
numval
Adjusted number of elements in resultant array.
Error Condition:
None
Example:
Please see array_del_zero_int (p. 1421) in the MSC Acumen Toolkit - Code Example.
  
array_fill_int
(array, n, dim)
Description:
This function sets each of n elements of an array to a given input value.
Input:
INTEGER ARRAY
array(dim)
Source array.
INTEGER ARRAY
dim
Number of elements in source array.
INTEGER ARRAY
n
Input value for the filled array.
Output:
REAL ARRAY
array(dim)
Resultant array filled by input value.
Error Condition:
None
Example:
Please see array_fill_int (p. 1422) in the MSC Acumen Toolkit - Code Example.
 
array_fill_zero_int
(array, n)
Description:
Set every component in an integer array to 0.
Input:
INTEGER
n
Array size.
Output:
INTEGER
array()
Array set to zero.
Error Conditions:
None.
Remarks:
None.
Example:
Please see array_fill_zero_int (p. 1423) in the MSC Acumen Toolkit - Code Example.
  
array_fill_zero_real
(array, dim)
Description:
This function sets each of the elements of the array to zero real values.
Input:
REAL
array(dim)
Source array.
INTEGER
dim
Number of elements in source array.
Output:
REAL
array(dim)
Resultant array with zero values.
Error Condition:
None
Example:
Please see array_fill_zero_real (p. 1424) in the MSC Acumen Toolkit - Code Example.
 
array_real_fill_null
(array, n)
Description:
Set every component in a real array to the null value.
Input:
INTEGER
n
Array size.
Output:
REAL
array()
Array filled with null values.
Error Conditions:
None.
Remarks:
None.
Example:
Please see array_real_fill_null (p. 1425) in the MSC Acumen Toolkit - Code Example.
  
array_sort_and_del_dupl_int
(array, n, dim)
Description:
This function sqeezes all duplicate values from the first n locations of an unsorted integer array. This function does not exist in MSC.Patran V9.0. It works in MSC.Patran V8.5.
Input:
INTEGER ARRAY
array(dim)
Array to be sqeezed.
INTEGER
dim
Actual number of elements in array.
INTEGER
n
Number of array elements to be considered.
Output:
INTEGER ARRAY
array(dim)
Sorted array with no duplicates.
INTEGER
n
Adjusted element count.
Error Condition:
None
Example:
Please see array_sort_and_del_dupl_int (p. 1426) in the MSC Acumen Toolkit - Code Example.