Changes between Initial Version and Version 1 of addnewenum


Ignore:
Timestamp:
11/15/14 14:19:15 (10 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • addnewenum

    v1 v1  
     1== Introduction ==
     2
     3Each model input is assigned an Enum in order to be found quickly (integers are easier to compare than strings).
     4
     5== Add a new Enum ==
     6
     7If you want to add a new Enum, the ONLY file that needs to be changed is src/c/shared/Enum/EnumDefinitions.h`. Open it with you favorite editor (vim) and add your new Enum. Make sure that:
     8 - It does not already exist (the compiler will tell you anyway)
     9 - It finishes with `Enum,`
     10
     11Then you can run a synchronization script that will update the matlab and python Enum, StringToEnum and EnumToString automatically:
     12
     13{{{
     14!bash
     15cd $ISSM_DIR/src/c/shared/Enum/EnumDefinitions.h
     16./Synchronize.sh
     17}}}
     18
     19You will then need to recompile the entire trunk (not just src/c), and there is no need to reconfigure:
     20
     21{{{
     22!bash
     23cd $ISSM_DIR/
     24make install
     25}}}
     26
     27== Checking in the changes ==
     28
     29In order to commit the new Enum, you will need to `svn add` the new matlab file in `$ISSM_DIR/src/m/enum`, and then commit all the files in `$ISSM_DIR/src/m/enum` and `$ISSM_DIR/src/c/shared/Enum`