||December 14, 2010 09:12
"=" or "==" when I modify BC (fixedGradient) during run ?
I wonder what is the correct code form to modify the BC during runs.
I know that for a fixedValue BC the "==" sign is required to overwrite the orginal BC. For example:
Now, if I want to modify a fixedGradient, it seems to me that "==" doesn't overwrite the orginal BC but "=" does. My piece of code is the following:
scalarField& gradpField = gradpPatch.gradient();
gradpField = fluxP;
Do you have an explanation ?