Changeset 22802


Ignore:
Timestamp:
05/24/18 10:27:21 (7 years ago)
Author:
seroussi
Message:

BUG: fixed problem with materials in solid earth tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateParameters.cpp

    r22798 r22802  
    105105                parameters->AddObject(iomodel->CopyConstantObject("md.transient.iscoupler",TransientIscouplerEnum));
    106106                parameters->AddObject(iomodel->CopyConstantObject("md.transient.isoceancoupling",TransientIsoceancouplingEnum));
    107                 parameters->AddObject(iomodel->CopyConstantObject("md.materials.rho_ice",MaterialsRhoIceEnum));
    108107                parameters->AddObject(iomodel->CopyConstantObject("md.transient.amr_frequency",TransientAmrFrequencyEnum));
    109108                parameters->AddObject(iomodel->CopyConstantObject("md.gia.cross_section_shape",GiaCrossSectionShapeEnum));
     
    292291
    293292        iomodel->FindConstant(&materialtype,"md.materials.type");
     293        if(materialtype==MatdamageiceEnum || materialtype==MaticeEnum || materialtype==MatenhancediceEnum){
     294                parameters->AddObject(iomodel->CopyConstantObject("md.materials.rho_ice",MaterialsRhoIceEnum));
     295        }
    294296        if(materialtype==MatdamageiceEnum){
    295297                iomodel->FindConstant(&requestedoutputs,&numoutputs,"md.damage.requested_outputs");
Note: See TracChangeset for help on using the changeset viewer.