Dealing with unknown parameter names
Dealing with unknown parameter names
(OP)
Hi all,
Is there any way to change ansys behaviour with an unknown parameter value? I would like the program to stop batch processing when an unknown parameter value is encountered - now it does not do that, which may lead to hard-to-find errors.
An example in the version I use (9.2)
tmpvar = DINGDONG !(DINGDONG not defined previously)
!output in interactive mode:
!*** WARNING ***
!Unknown parameter name= DINGDONG. A value of 7.888609052E-31 !will be used.
!
!no output in batch mode
Is there any way to change ansys behaviour with an unknown parameter value? I would like the program to stop batch processing when an unknown parameter value is encountered - now it does not do that, which may lead to hard-to-find errors.
An example in the version I use (9.2)
tmpvar = DINGDONG !(DINGDONG not defined previously)
!output in interactive mode:
!*** WARNING ***
!Unknown parameter name= DINGDONG. A value of 7.888609052E-31 !will be used.
!
!no output in batch mode





RE: Dealing with unknown parameter names
The comand
*get,partype,parm,DINGDONG,type
checks if parameter is defined and if so, it checks what kind of parapater that is.
The you can use the *if comand to stop the run if necessary:
*if,partype,eq,-1,then
/exit
*endif
Regards,
Alex
RE: Dealing with unknown parameter names