02.04.2013 Views

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

Welcome to Adams/Solver Subroutines - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

52<br />

<strong>Adams</strong>/<strong>Solver</strong><br />

GTARAY returns the double-precision numbers s<strong>to</strong>red by an IC-type ARRAY statement (C++ or<br />

FORTRAN).<br />

Use<br />

Called By<br />

Any user-written subroutine<br />

Prerequisite<br />

ARRAY statement in dataset<br />

Calling Sequence<br />

CALL GTARAY (id, array, number, istat)<br />

Input Argument<br />

id An integer variable that specifies the ID of the ARRAY statement.<br />

Output Arguments<br />

array A double-precision array containing the data defined in the ARRAY<br />

statement statement.<br />

istat An integer that indicates the success or the reason for the failure of the<br />

call <strong>to</strong> GTARAY.<br />

number A variable that indicates the number of values returned in the array.<br />

GTCMAT<br />

If: Then:<br />

istat = 0 The call <strong>to</strong> GTARAY was successful.<br />

istat = -1 ARRAY/id is not an IC-type.<br />

istat = -2 <strong>Adams</strong>/<strong>Solver</strong> could not find an ARRAY statement<br />

with the identifier indicated in id.<br />

Caution: • Make sure that array is large enough <strong>to</strong> hold all of the returned values.<br />

• You can only use GTARAY <strong>to</strong> access values for an IC-type ARRAY (the default<br />

type). If you want <strong>to</strong> access values for an X-type, a Y-type, or a U-type ARRAY,<br />

use SYSARY and the ARRAY function, or SYSFNC and the C++ ARYVAL<br />

function or the FORTRAN ARYVAL function.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!