if (NNULLP(T_STORAGE_R_NV(t0, SV_UDSI_G(0))))
I want to know what will happen if the gradient of uds is not allocated. Can it lead to that all the Statements relevant to C_UDSI_G will not be executed?or something else.
http://cdn.img.headns.com/2010/ee8f42698e6f0.png |
NNULLP returns TRUE if storage is allocated for user-defined storage variable
in case the storage has not been allocated if statement will not be executed |
Quote:
|
NNULLP conditional i needed to prevent the case, when you read gradient (or any other variable) value , but memory was not allocated.
In that case you will get an error you can put printf inside if statement, it is recommended to use Message macro in fluent instead of printf |
Quote:
then if I use NNULLP and memory is just not allocated,what it would show? |
All times are GMT -4. The time now is 05:55. |