Changeset 23802


Ignore:
Timestamp:
03/18/19 09:02:09 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added error message when bed is not loaded (requested_output={'IceVolumeAboveFLoatation'}

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r23801 r23802  
    15501550        Input* base_input        = inputs->GetInput(BaseEnum);        _assert_(base_input);
    15511551        Input* bed_input = inputs->GetInput(BedEnum); _assert_(bed_input);
     1552        if(!bed_input) _error_("Could not find bed");
    15521553        surface_input->GetInputAverage(&surface);
    15531554        base_input->GetInputAverage(&bed);
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r23801 r23802  
    20792079        Input* base_input        = inputs->GetInput(BaseEnum);        _assert_(base_input);
    20802080        Input* bed_input = inputs->GetInput(BedEnum); _assert_(bed_input);
     2081        if(!bed_input) _error_("Could not find bed");
    20812082        surface_input->GetInputAverage(&surface);
    20822083        base_input->GetInputAverage(&bed);
Note: See TracChangeset for help on using the changeset viewer.