Changeset 23377
- Timestamp:
- 10/02/18 16:18:43 (6 years ago)
- Location:
- issm/trunk-jpl/src/c/analyses
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/HydrologyDCEfficientAnalysis.cpp
r23373 r23377 349 349 } 350 350 if(smb_model==SMBgradientscomponentsEnum){ 351 surface_runoff_input = basalelement->GetInput(SmbRunoffEnum); 351 surface_runoff_input = basalelement->GetInput(SmbRunoffEnum); _assert_(surface_runoff_input); 352 352 } 353 353 … … 363 363 /*Loading term*/ 364 364 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.; 366 367 scalar = Jdet*gauss->weight*(water_load+runoff_value); 367 368 //scalar = Jdet*gauss->weight*(water_load)/epl_transmitivity; -
issm/trunk-jpl/src/c/analyses/HydrologyDCInefficientAnalysis.cpp
r23376 r23377 407 407 if(!active_element){ 408 408 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.; 410 411 scalar = Jdet*gauss->weight*(water_load+runoff_value); 411 412 //scalar = Jdet*gauss->weight*(water_load)/sediment_transmitivity;
Note:
See TracChangeset
for help on using the changeset viewer.