Changes between Version 8 and Version 9 of addfield


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

--

Legend:

Unmodified
Added
Removed
Modified
  • addfield

    v8 v9  
    1212== Implement the new field in the model ==
    1313
     14First, load the input:
     15
    1416{{{
    1517#!c
    1618Input* meltingrate_input  = NULL;
     19meltingrate_input = basalelement->GetInput(CalvinglevermannMeltingrateEnum);     _assert_(meltingrate_input);
    1720}}}
     21
     22Then, start  looping on the number of gaussian points and fetch the input value at these points:
     23
     24{{{
     25#!c
     26meltingrate_input->GetInputValue(&meltingrate,gauss);
     27}}}