Step-by-step guide
Let us suppose that the field is stored in fieldset g and we want to assign the value of 5 to each of the gridpoints. Then the macro code goes like this:
#First we set the values to zero then add a constant value to them g=g*0+5
Let us suppose that the field is stored in fieldset g and we want to assign the value of 5 to each of the gridpoints. Then the macro code goes like this:
#First we set the values to zero then add a constant value to them g=g*0+5