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

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


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.