11.01.2013 Views

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - 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.

OUTPUT2<br />

Output a table or matrix into a FORTRAN readable file<br />

Entry<br />

Point<br />

Description<br />

IREAD Supplies data to the calling program in a logical (as opposed to a<br />

physical) manner.<br />

Format:<br />

CALL IREAD(IUN,ARRY,NARY,IMETH,NT,IRTN)<br />

where IUN is as described in IOPEN.<br />

ARRY is the array into which a record is transmitted.<br />

NARY is an integer input that requests the number of words to be<br />

transmitted. If NARY is zero, no words will be transmitted. If NARY is<br />

negative, the words will be skipped but not transmitted. If (NARY is<br />

greater than the number of words remaining, the remaining words are<br />

processed (skipped or transmitted) and NT is set to this number and<br />

IRTN is set to 1.<br />

IMETH is an integer input that specifies how to proceed through the<br />

logical record. If IMETH = 0, the current logical record is continuously<br />

processed until an end-of-record return (IRTN =1) is given. If IMETH<br />

= 1, the remaining data (if any) at the conclusion of IREAD, in the<br />

current logical record, is skipped.<br />

NT is an integer output value which contains the number of words<br />

transmitted or skipped if IRTN is 1 on return from IREAD.<br />

IRTN is an integer output value which indicates the status on return<br />

from IREAD.<br />

IRTN = 0 Normal return.<br />

IRTN = 1 End of logical record hit while trying to process NARY<br />

words.<br />

IRTN = 2 End-of-file hit for this data block.<br />

Method:<br />

OUTPUT2 physical records are read into a buffer area. These records<br />

are, at most, 2 * BUFFSIZE words long. The current position is<br />

maintained and data is transmitted (or skipped) from the buffer to the<br />

ARRY array. If the <strong>NX</strong> <strong>Nastran</strong> logical record spans several physical<br />

FORTRAN records these are transparent (no end-of-record returns) to<br />

the user.<br />

127

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

Saved successfully!

Ooh no, something went wrong!