Changes between Version 8 and Version 9 of addfield
- Timestamp:
- 11/19/14 16:40:41 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
addfield
v8 v9 12 12 == Implement the new field in the model == 13 13 14 First, load the input: 15 14 16 {{{ 15 17 #!c 16 18 Input* meltingrate_input = NULL; 19 meltingrate_input = basalelement->GetInput(CalvinglevermannMeltingrateEnum); _assert_(meltingrate_input); 17 20 }}} 21 22 Then, start looping on the number of gaussian points and fetch the input value at these points: 23 24 {{{ 25 #!c 26 meltingrate_input->GetInputValue(&meltingrate,gauss); 27 }}}