Changeset 23377


Ignore:
Timestamp:
10/02/18 16:18:43 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing NR

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp

    r23373 r23377  
    349349        }
    350350        if(smb_model==SMBgradientscomponentsEnum){
    351                 surface_runoff_input = basalelement->GetInput(SmbRunoffEnum);
     351                surface_runoff_input = basalelement->GetInput(SmbRunoffEnum); _assert_(surface_runoff_input);
    352352        }
    353353
     
    363363                /*Loading term*/
    364364                basal_melt_input->GetInputValue(&water_load,gauss);
    365                 surface_runoff_input->GetInputValue(&runoff_value,gauss);
     365                if(surface_runoff_input) surface_runoff_input->GetInputValue(&runoff_value,gauss);
     366                else                     runoff_value = 0.;
    366367                scalar = Jdet*gauss->weight*(water_load+runoff_value);
    367368                //scalar = Jdet*gauss->weight*(water_load)/epl_transmitivity;
  • issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp

    r23376 r23377  
    407407                        if(!active_element){
    408408                                basal_melt_input->GetInputValue(&water_load,gauss);
    409                                 surface_runoff_input->GetInputValue(&runoff_value,gauss);
     409                                if(surface_runoff_input) surface_runoff_input->GetInputValue(&runoff_value,gauss);
     410                                else                     runoff_value = 0.;
    410411                                scalar = Jdet*gauss->weight*(water_load+runoff_value);
    411412                                //scalar = Jdet*gauss->weight*(water_load)/sediment_transmitivity;
Note: See TracChangeset for help on using the changeset viewer.