Changes between Version 5 and Version 6 of addfield


Ignore:
Timestamp:
11/19/14 16:17:05 (10 years ago)
Author:
srebuffi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • addfield

    v5 v6  
    55Go to `src/m/classes` and modify all the classes concerned by the new field, here `calving.m` and`calvinglevermann.m` and their associated Python versions. Declare the new field, add default values (if desired), add consistency checks and display descriptions.
    66
     7== Add new Enums ==
    78Now, you have to [wiki:addnewenum add the Enum] corresponding to your new field whose Enum name will be : ClassenameFieldnameEnum with Classename the name of the class with upper case for the first letter (here it will be Calving and Calvinglevermann for Classename) and Fieldname the name of your field you put in the previous files with upper case for the first letter (I put `meltingrate` in `calving.m` so Fieldname is Meltingrate). So I will add 2 Enums : CalvingMeltingrateEnum and CalvinglevermannMeltingrateEnum.
     9
     10NB : don't forget to synchronize the Enums after it.
     11
     12== Implement the new field in the model ==
     13
     14
    815
    916{{{