Changeset 25044


Ignore:
Timestamp:
06/17/20 12:13:40 (5 years ago)
Author:
jdquinn
Message:

BUG: Majority of fixes for Dakota Python tests; still need to fix test418.m

Location:
issm/trunk-jpl
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/qmu/normal_uncertain.m

    r25028 r25044  
    2929                        self.descriptor=getfieldvalue(options,'descriptor');
    3030                        self.mean=getfieldvalue(options,'mean');
     31                        disp(self.mean)
    3132                        self.stddev=getfieldvalue(options,'stddev');
    3233
     
    3839                                self.nsteps=getfieldvalue(options,'nsteps',1);
    3940                                npart=qmupart2npart(self.partition);
     41                                fprintf('nsteps=%d\n',self.nsteps);
     42                                fprintf('npart=%d\n',npart);
    4043                                if npart~=size(self.mean,1),
    4144                                        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  
    1313    NORMAL_UNCERTAIN class definition
    1414
    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                 )
     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            )
    3333    '''
    3434    def __init__(self):
  • issm/trunk-jpl/src/m/qmu/preqmu.py

    r25022 r25044  
    127127                    variablepartitions.append(fieldvariable[j].partition)
    128128                    variablepartitions_npart.append(qmupart2npart(fieldvariable[j].partition))
    129                     variablepartitions_nt.append(fieldvariable.nsteps)
     129                    variablepartitions_nt.append(fieldvariable[j].nsteps)
    130130                else:
    131131                    variablepartitions.append([])
  • issm/trunk-jpl/test/NightlyRun/test218.m

    r25007 r25044  
    8484
    8585%imperative!
    86 md.stressbalance.reltol=10^-10; %tighten for qmu analysese
     86md.stressbalance.reltol=10^-10; %tighten for qmu analyses
    8787md.qmu.isdakota=1;
    8888
  • issm/trunk-jpl/test/NightlyRun/test218.py

    r25010 r25044  
    8585md.qmu.variables.rheology_B = normal_uncertain.normal_uncertain(
    8686        '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)),
    8989        'partition', partition
    9090        )
     
    110110
    111111#imperative!
    112 md.stressbalance.reltol = 10**-10  #tighten for qmu analysis
     112md.stressbalance.reltol = 10**-10  #tighten for qmu analyses
    113113md.qmu.isdakota = 1
    114114
  • issm/trunk-jpl/test/NightlyRun/test235.py

    r25016 r25044  
    4444md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain(
    4545    '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)),
    4848    'partition', partition
    4949    )
  • issm/trunk-jpl/test/NightlyRun/test244.py

    r25015 r25044  
    7474md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain(
    7575    '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)),
    7878    'partition', partition
    7979    )
  • issm/trunk-jpl/test/NightlyRun/test250.py

    r25016 r25044  
    4242md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain(
    4343    '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)),
    4646    'partition', partition
    4747    )
  • issm/trunk-jpl/test/NightlyRun/test251.py

    r25016 r25044  
    4343md.qmu.variables.surface_mass_balance = normal_uncertain.normal_uncertain(
    4444    '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)),
    4747    'partition', partition
    4848    )
  • issm/trunk-jpl/test/NightlyRun/test412.py

    r25022 r25044  
    3737md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain(
    3838    '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)),
    4141    'partition', partition
    4242    )
  • issm/trunk-jpl/test/NightlyRun/test413.py

    r25016 r25044  
    3434md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain(
    3535    '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)),
    3838    'partition', partition
    3939    )
  • issm/trunk-jpl/test/NightlyRun/test414.py

    r25010 r25044  
    3838md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain(
    3939    '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)),
    4242    'partition', partition
    4343    )
  • issm/trunk-jpl/test/NightlyRun/test417.py

    r25010 r25044  
    3939md.qmu.variables.drag_coefficient = normal_uncertain.normal_uncertain(
    4040    '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)),
    4343    'partition', partition
    4444    )
Note: See TracChangeset for help on using the changeset viewer.