Changeset 25044
- Timestamp:
- 06/17/20 12:13:40 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/qmu/normal_uncertain.m
r25028 r25044 29 29 self.descriptor=getfieldvalue(options,'descriptor'); 30 30 self.mean=getfieldvalue(options,'mean'); 31 disp(self.mean) 31 32 self.stddev=getfieldvalue(options,'stddev'); 32 33 … … 38 39 self.nsteps=getfieldvalue(options,'nsteps',1); 39 40 npart=qmupart2npart(self.partition); 41 fprintf('nsteps=%d\n',self.nsteps); 42 fprintf('npart=%d\n',npart); 40 43 if npart~=size(self.mean,1), 41 44 error(['normal_uncertain constructor: for the scaled variable ' self.descriptor ' the row size of the mean field should be identical to the number of partitions']); -
issm/trunk-jpl/src/m/classes/qmu/normal_uncertain.py
r25022 r25044 13 13 NORMAL_UNCERTAIN class definition 14 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 15 Usage: 16 nuv = normal_uncertain('descriptor',descriptor,'mean',mean,'stddev',stddev,'partition',partition) 17 where nuv is the normal_uncertain object returned by the constructor, mean and stddev are self 18 explanatory. partition is the partition vector for distributed variables. Can be a partition 19 vector over elements or vertices. 20 21 Example: 22 md.qmu.variables.rheology=normal_uncertain( 23 'descriptor','RheologyBBar', 24 'mean',1, 25 'stddev',.05 26 ) 27 md.qmu.variables.rheology=normal_uncertain( 28 'descriptor','scaled_RheologyBBar', 29 'mean',1, 30 'stddev',.05, 31 'partition',vpartition 32 ) 33 33 ''' 34 34 def __init__(self): -
issm/trunk-jpl/src/m/qmu/preqmu.py
r25022 r25044 127 127 variablepartitions.append(fieldvariable[j].partition) 128 128 variablepartitions_npart.append(qmupart2npart(fieldvariable[j].partition)) 129 variablepartitions_nt.append(fieldvariable .nsteps)129 variablepartitions_nt.append(fieldvariable[j].nsteps) 130 130 else: 131 131 variablepartitions.append([]) -
issm/trunk-jpl/test/NightlyRun/test218.m
r25007 r25044 84 84 85 85 %imperative! 86 md.stressbalance.reltol=10^-10; %tighten for qmu analyses e86 md.stressbalance.reltol=10^-10; %tighten for qmu analyses 87 87 md.qmu.isdakota=1; 88 88 -
issm/trunk-jpl/test/NightlyRun/test218.py
r25010 r25044 85 85 md.qmu.variables.rheology_B = normal_uncertain.normal_uncertain( 86 86 'descriptor', 'scaled_MaterialsRheologyB', 87 'mean', np.ones( md.mesh.numberofvertices),88 'stddev', .05 * np.ones( md.mesh.numberofvertices),87 'mean', np.ones((npart, 1)), 88 'stddev', .05 * np.ones((npart, 1)), 89 89 'partition', partition 90 90 ) … … 110 110 111 111 #imperative! 112 md.stressbalance.reltol = 10**-10 #tighten for qmu analys is112 md.stressbalance.reltol = 10**-10 #tighten for qmu analyses 113 113 md.qmu.isdakota = 1 114 114 -
issm/trunk-jpl/test/NightlyRun/test235.py
r25016 r25044 44 44 md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain( 45 45 'descriptor', 'scaled_SmbMassBalance', 46 'mean', np.ones( npart),47 'stddev', 100 * np.ones( npart),46 'mean', np.ones((npart, 1)), 47 'stddev', 100 * np.ones((npart, 1)), 48 48 'partition', partition 49 49 ) -
issm/trunk-jpl/test/NightlyRun/test244.py
r25015 r25044 74 74 md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain( 75 75 'descriptor', 'scaled_SmbC', 76 'mean', np.ones( md.mesh.numberofelements),77 'stddev', .5 * np.ones( md.mesh.numberofelements),76 'mean', np.ones((npart, 1)), 77 'stddev', .5 * np.ones((npart, 1)), 78 78 'partition', partition 79 79 ) -
issm/trunk-jpl/test/NightlyRun/test250.py
r25016 r25044 42 42 md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain( 43 43 'descriptor', 'scaled_SmbMassBalance', 44 'mean', np.ones( md.mesh.numberofvertices),45 'stddev', .1 * np.ones( md.mesh.numberofvertices),44 'mean', np.ones((npart, 1)), 45 'stddev', .1 * np.ones((npart, 1)), 46 46 'partition', partition 47 47 ) -
issm/trunk-jpl/test/NightlyRun/test251.py
r25016 r25044 43 43 md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain( 44 44 'descriptor', 'scaled_SmbMassBalance', 45 'mean', np.ones( md.mesh.numberofvertices),46 'stddev', 100 * np.ones( md.mesh.numberofvertices),45 'mean', np.ones((npart, 1)), 46 'stddev', 100 * np.ones((npart, 1)), 47 47 'partition', partition 48 48 ) -
issm/trunk-jpl/test/NightlyRun/test412.py
r25022 r25044 37 37 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain( 38 38 'descriptor', 'scaled_FrictionCoefficient', 39 'mean', np.ones( npart),40 'stddev', .01 * np.ones( npart),39 'mean', np.ones((npart, 1)), 40 'stddev', .01 * np.ones((npart, 1)), 41 41 'partition', partition 42 42 ) -
issm/trunk-jpl/test/NightlyRun/test413.py
r25016 r25044 34 34 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain( 35 35 'descriptor', 'scaled_FrictionCoefficient', 36 'mean', np.ones( npart),37 'stddev', .01 * np.ones( npart),36 'mean', np.ones((npart, 1)), 37 'stddev', .01 * np.ones((npart, 1)), 38 38 'partition', partition 39 39 ) -
issm/trunk-jpl/test/NightlyRun/test414.py
r25010 r25044 38 38 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain( 39 39 'descriptor', 'scaled_FrictionCoefficient', 40 'mean', np.ones( npart),41 'stddev', .01 * np.ones( npart),40 'mean', np.ones((npart, 1)), 41 'stddev', .01 * np.ones((npart, 1)), 42 42 'partition', partition 43 43 ) -
issm/trunk-jpl/test/NightlyRun/test417.py
r25010 r25044 39 39 md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain( 40 40 'descriptor', 'scaled_FrictionCoefficient', 41 'mean', np.ones( npart),42 'stddev', .01 * np.ones( npart),41 'mean', np.ones((npart, 1)), 42 'stddev', .01 * np.ones((npart, 1)), 43 43 'partition', partition 44 44 )
Note:
See TracChangeset
for help on using the changeset viewer.