You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How can I set the values of a field to a constant value?

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



There is no content with the specified labels



  • No labels