I am trying to calculate the species gradient in a simulation using C_YI_RG, but when I check if there is a gradient to store with:

if (NNULLP(THREAD_STORAGE(liq, SV_Y_RG))) , 

 I get FALSE everytime.

Can anyone help me with this issue?

My best regards,

Denir