Changes between Version 18 and Version 19 of addfield
- Timestamp:
- 11/19/20 15:24:25 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
addfield
v18 v19 36 36 }}} 37 37 38 After, load the input in the computation function :38 After, load the input in the computation function (i.e. wherever you need to use this input): 39 39 40 40 {{{ 41 41 #!c 42 Input* meltingrate_input = NULL; 43 meltingrate_input = basalelement->GetInput(CalvinglevermannMeltingrateEnum); _assert_(meltingrate_input); 42 Input* meltingrate_input = element->GetInput(CalvinglevermannMeltingrateEnum); _assert_(meltingrate_input); 44 43 }}} 45 44 46 Then, start looping on the number of gaussian points and fetch the input value at these points: 47 48 {{{ 49 #!c 50 meltingrate_input->GetInputValue(&meltingrate,gauss); 51 }}} 52 53 Ater that, you can do your computations using `meltingrate` for this gaussian point. 45 You can then use `meltingrate_input` like any other input. 54 46 55 47 == Add a Nightly run test ==