Xinting and others are correct. The syntax of ACCEPT/IGNORE is
limited and cannot handle an expression such as $DATA ACCEPT=((A ==
1.OR.A == 2).AND.B<100) In the NM-TRAN syntax, OR is implied. NOT and
AND cannot be coded.
Instead, the ACCEPT must be negated as IGNORE to change AND to OR:
IGNOR
Xinting and others are correct. The syntax of ACCEPT/IGNORE is
limited and cannot handle an expression such as $DATA ACCEPT=((A ==
1.OR.A == 2).AND.B<100) In the NM-TRAN syntax, OR is implied. NOT and
AND cannot be coded.
Instead, the ACCEPT must be negated as IGNORE to change AND to OR:
IGNOR
Dear Katya and Bill,
Thanks a lot for your suggestion. Multiple IGNORE, as suggested Katya,
actually worked.
Best Regards
On 18 November 2014 17:24, Ekaterina Gibiansky
wrote:
> Hi Xinting,
>
> You can separate the condition into several statements. For example, if
> you need to accept (A=1 O
Hi Xinting,
You can separate the condition into several statements. For example, if
you need to accept (A=1 OR A=2) AND B<100
you instead can have 2 or 3 IGNORE statements (depending on the values A
can have), say
IGNORE=(B.GE.100) IGNORE=(A.GT.2) IGNORE=(A.LT.1)
Regards,
Katya
Ekaterina G
Hi Xinting,
I’ve worked with these types of statements a good bit, and my personal
preference is to add a column to the data set that makes the selection simpler
(e.g. set it to 1 if (A == 1 or A == 2) and B < 100). Last I knew, it wasn’t
possible to do an “AND” in an ignore statement (and che