Changes between Version 18 and Version 19 of addfield


Ignore:
Timestamp:
11/19/20 15:24:25 (3 years ago)
Author:
Mathieu Morlighem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • addfield

    v18 v19  
    3636}}}
    3737
    38 After, load the input in the computation function
     38After, load the input in the computation function (i.e. wherever you need to use this input)
    3939
    4040{{{
    4141#!c
    42 Input* meltingrate_input  = NULL;
    43 meltingrate_input = basalelement->GetInput(CalvinglevermannMeltingrateEnum);     _assert_(meltingrate_input);
     42Input* meltingrate_input = element->GetInput(CalvinglevermannMeltingrateEnum); _assert_(meltingrate_input);
    4443}}}
    4544
    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.
     45You can then use `meltingrate_input` like any other input.
    5446
    5547== Add a Nightly run test ==