--- Quote Start ---
Right, that was what FVM was getting at. You can clear that particular error by using 'constant RecipFactor' instead of 'variable RecipFactor'.
Cheers,
Dave
--- Quote End ---
James' question was why he got an error for the 'variable' construct not whether his code was any good. He specifically wanted to show the '1/sqrt(3)' in his equation instead of an obscure 0.577350269, which is a sound idea. There are workarounds where he wouldn't have to use a division ( pow(sqrt(3.0), -1.0) , but again that would be not pure ...
Of course Frank's remark stays valid.
But judging by his silence James has found what he was looking for?