Changeset 9668


Ignore:
Timestamp:
09/07/11 15:42:46 (14 years ago)
Author:
seroussi
Message:

more qmu stuff

Location:
issm/trunk/src/m
Files:
6 edited

Legend:

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

    r9650 r9668  
    8585
    8686                        disp(sprintf('         qmu_method:  (array of dakota_method class)'));
    87                         for i=1:numel(obj.qmu_method);
    88                                 if strcmp(class(obj.qmu_method(i)),'dakota_method')
     87                        for i=1:numel(obj.method);
     88                                if strcmp(class(obj.method(i)),'dakota_method')
    8989                                        disp(sprintf('            method%s :    ''%s''',...
    90                                                 string_dim(obj.qmu_method,i),obj.qmu_method(i).method));
     90                                                string_dim(obj.method,i),obj.method(i).method));
    9191                                end
    9292                        end
    9393
    94                         for i=1:numel(obj.qmu_params)
     94                        for i=1:numel(obj.params)
    9595                                disp(sprintf('         qmu_params%s:  (array of method-independent parameters)',...
    96                                         string_dim(obj.qmu_params,i)));
    97                                 fnames=fieldnames(obj.qmu_params(i));
     96                                        string_dim(obj.params,i)));
     97                                fnames=fieldnames(obj.params(i));
    9898                                maxlen=0;
    9999                                for j=1:numel(fnames)
     
    103103                                for j=1:numel(fnames)
    104104                                        disp(sprintf(['            %-' num2str(maxlen+1) 's: %s'],...
    105                                                 fnames{j},any2str(obj.qmu_params(i).(fnames{j}))));
     105                                                fnames{j},any2str(obj.params(i).(fnames{j}))));
    106106                                end
    107107                        end
    108108
    109                         for i=1:numel(obj.dakotaresults)
    110                                 disp(sprintf('         dakotaresults%s:  (information from dakota files)',...
    111                                         string_dim(obj.dakotaresults,i)));
    112                                 fnames=fieldnames(obj.dakotaresults(i));
     109                        for i=1:numel(obj.results)
     110                                disp(sprintf('         results%s:  (information from dakota files)',...
     111                                        string_dim(obj.results,i)));
     112                                fnames=fieldnames(obj.results(i));
    113113                                maxlen=0;
    114114                                for j=1:numel(fnames)
     
    118118                                for j=1:numel(fnames)
    119119                                        disp(sprintf(['            %-' num2str(maxlen+1) 's:    [%ix%i]    ''%s'''],...
    120                                                 fnames{j},size(obj.dakotaresults.(fnames{j})),class(obj.dakotaresults.(fnames{j}))));
     120                                                fnames{j},size(obj.results.(fnames{j})),class(obj.results.(fnames{j}))));
    121121                                end
    122122                        end
    123123
    124                         disp(sprintf('         npart   : %i (number of partitions for semi-descrete qmu)',obj.npart));
    125                         disp(sprintf('         part    : [%i] (user provided mesh partition, defaults to metis if not specified)',length(obj.part)));
     124                        disp(sprintf('         numberofpartitions   : %i (number of partitions for semi-descrete qmu)',obj.numberofpartitions));
     125                        disp(sprintf('         partition    : [%i] (user provided mesh partitionition, defaults to metis if not specified)',length(obj.partition)));
    126126                end % }}}
    127127        end
  • issm/trunk/src/m/model/partition/adjacency.m

    r9650 r9668  
    66%  the required output is:
    77%    md.adj_mat     (double [sparse nv x nv], vertex adjacency matrix)
    8 %    md.vertex_weight        (double [nv], vertex weights)
     8%    md.qmu.vertex_weight        (double [nv], vertex weights)
    99
    1010indi=[md.elements(:,1);md.elements(:,2);md.elements(:,3)];
     
    2424pos=find(connectivity);
    2525connectivity(pos)=areas(connectivity(pos))/3;
    26 md.vertex_weight=sum(connectivity,2);
     26md.qmu.vertex_weight=sum(connectivity,2);
  • issm/trunk/src/m/model/partition/partitioner.m

    r9650 r9668  
    1 function md.qmu.partitionitioner(md,varargin)
     1function md=partitioner(md,varargin)
    22%PARTITIONER - partition mesh
    33%
     
    1212%   
    1313%   Usage:
    14 %      md.qmu.partitionitioner(md,'package','chaco','npart',100,'weighting','on');
     14%      md=partitioner(md,'package','chaco','npart',100,'weighting','on');
    1515%
    1616
  • issm/trunk/src/m/qmu/expandresponses.m

    r9650 r9668  
    1 function dresp=expandresponses(md.qmu.responses)
     1function dresp=expandresponses(md,responses)
    22
    33fnames=fieldnames(responses);
  • issm/trunk/src/m/qmu/expandvariables.m

    r9650 r9668  
    1 function dvar=expandvariables(md.qmu.variables)
     1function dvar=expandvariables(md,variables)
    22
    33fnames=fieldnames(variables);
  • issm/trunk/src/m/qmu/preqmu.m

    r9650 r9668  
    4141
    4242%expand variables and responses
    43 variables=expandvariables(md.qmu.variables);
    44 responses=expandresponses(md.qmu.responses);
     43variables=expandvariables(md,variables);
     44responses=expandresponses(md,responses);
    4545
    4646%go through variables and responses, and check they don't have more than md.qmu.numberofpartitions values. Also determine numvariables and numresponses{{{1
Note: See TracChangeset for help on using the changeset viewer.