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.

Instructions<br />

Type conversions can be performed with the INT, REAL, CMPLX, ITOL, and LTOI<br />

<strong>DMAP</strong> functions.<br />

For character assignment statements, if the length of the expression does not match the<br />

size of the variable, the expression is adjusted as follows:<br />

• If the expression is shorter than the variable, the expression is padded with<br />

enough blanks on the right before the assignment takes place to make the<br />

sizes equal.<br />

• If the expression is longer than the variable, characters on the right are<br />

truncated to make the sizes the same.<br />

Function Statement<br />

Functions can only appear within an arithmetic or logical expression; they cannot be<br />

referenced within module or CALL statements. Execution of the function causes the<br />

evaluation of the function and returns a value to the referencing expression. Some<br />

functions, however, may appear as a <strong>DMAP</strong> statement without appearing in an<br />

arithmetic or logical expression. These functions are DIAGON, DIAGOFF, NOOP,<br />

PUTSYS, PUTDIAG, RDIAGOFF, and RDIAGON.<br />

The type of the value returned from a function is dependent on the type of the<br />

argument(s) supplied, in addition to the functional operation. In general, the precision<br />

(single, double) and form (integer, real, complex) of the result returned by the function<br />

carries at least as much information as the arguments supplied. For example,<br />

ACOS(X) is typed as follows:<br />

X ACOS(X)<br />

I RS<br />

RS RS<br />

RD RD<br />

CS CS<br />

CD CD<br />

Returned values for character functions can be processor dependent.<br />

21

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

Saved successfully!

Ooh no, something went wrong!