Accessing field in codedSource with codeCorrect
Hi,
The documentation for codedSource
mentions the following arguments:
- codeCorrect: field
- codeAddSup: eqn, fieldi
- codeConstrain: eqn, fieldi
I can use eqn
and fieldi
from codeAddSup, however when trying to use field
from codeCorrect
it complains about not being declared. Is there something missing in the following code?
codedSource
{
type vectorCodedSource;
selectionMode all;
fields (U);
name testing;
codeCorrect
#{
vectorField& testField = field;
#};
codeAddSup
#{
vectorField& fieldSource = eqn.source();
label fieldLabel = fieldi;
#};
codeConstrain
#{
#};
}
Thanks.