Changeset 9668
- Timestamp:
- 09/07/11 15:42:46 (14 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/qmu.m
r9650 r9668 85 85 86 86 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') 89 89 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)); 91 91 end 92 92 end 93 93 94 for i=1:numel(obj. qmu_params)94 for i=1:numel(obj.params) 95 95 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)); 98 98 maxlen=0; 99 99 for j=1:numel(fnames) … … 103 103 for j=1:numel(fnames) 104 104 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})))); 106 106 end 107 107 end 108 108 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)); 113 113 maxlen=0; 114 114 for j=1:numel(fnames) … … 118 118 for j=1:numel(fnames) 119 119 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})))); 121 121 end 122 122 end 123 123 124 disp(sprintf(' n part : %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))); 126 126 end % }}} 127 127 end -
issm/trunk/src/m/model/partition/adjacency.m
r9650 r9668 6 6 % the required output is: 7 7 % 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) 9 9 10 10 indi=[md.elements(:,1);md.elements(:,2);md.elements(:,3)]; … … 24 24 pos=find(connectivity); 25 25 connectivity(pos)=areas(connectivity(pos))/3; 26 md. vertex_weight=sum(connectivity,2);26 md.qmu.vertex_weight=sum(connectivity,2); -
issm/trunk/src/m/model/partition/partitioner.m
r9650 r9668 1 function md .qmu.partitionitioner(md,varargin)1 function md=partitioner(md,varargin) 2 2 %PARTITIONER - partition mesh 3 3 % … … 12 12 % 13 13 % Usage: 14 % md .qmu.partitionitioner(md,'package','chaco','npart',100,'weighting','on');14 % md=partitioner(md,'package','chaco','npart',100,'weighting','on'); 15 15 % 16 16 -
issm/trunk/src/m/qmu/expandresponses.m
r9650 r9668 1 function dresp=expandresponses(md .qmu.responses)1 function dresp=expandresponses(md,responses) 2 2 3 3 fnames=fieldnames(responses); -
issm/trunk/src/m/qmu/expandvariables.m
r9650 r9668 1 function dvar=expandvariables(md .qmu.variables)1 function dvar=expandvariables(md,variables) 2 2 3 3 fnames=fieldnames(variables); -
issm/trunk/src/m/qmu/preqmu.m
r9650 r9668 41 41 42 42 %expand variables and responses 43 variables=expandvariables(md .qmu.variables);44 responses=expandresponses(md .qmu.responses);43 variables=expandvariables(md,variables); 44 responses=expandresponses(md,responses); 45 45 46 46 %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.