for the first one, try NV_S(n,/,NV_MAG(n)) ;Not sure about the second, sorry

Thanks. I tried out the below command, I declared n and ncap as real n[ND_ND] and real ncap[ND_ND] respectively and stored a gradient in n using NV_V(n, =, C_UDSI_G(c,t,0)).nncap = NV_S(n, /, NV_MAG(n));nHowever I'm getting the below error using the above command, I'm not quite sure what's wrong.nerror C2440: '=': cannot convert from 'real' to 'real [2]'n