Ignore:
Timestamp:
05/17/20 17:15:00 (5 years ago)
Author:
jdquinn
Message:

CHG: Translated MATLAB changes to Python that allow for distributing variable over partition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test413.py

    r24261 r24870  
    2828
    2929#variables
    30 md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain('MaterialsRhoIce', md.materials.rho_ice, 0.01)
    31 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain('scaled_FrictionCoefficient', 1, 0.01)
     30md.qmu.variables.rho_ice = normal_uncertain.normal_uncertain(
     31    'descriptor', 'MaterialsRhoIce',
     32    'mean', md.materials.rho_ice,
     33    'stddev', 0.1
     34    )
     35md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain(
     36    'descriptor', 'scaled_FrictionCoefficient',
     37    'mean', np.ones(md.qmu.numberofpartitions),
     38    'stddev', .01 * np.ones(md.qmu.numberofpartitions),
     39    'partition', md.qmu.vpartition
     40    )
    3241
    3342#responses
    34 md.qmu.responses.MaxVel = response_function.response_function('MaxVel', [], [0.0001, 0.001, 0.01, 0.25, 0.5, 0.75, 0.99, 0.999, 0.9999])
     43md.qmu.responses.MaxVel = response_function.response_function('descriptor','MaxVel')
    3544
    3645#method
Note: See TracChangeset for help on using the changeset viewer.