Ignore:
Timestamp:
09/07/11 10:22:21 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added qmu object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r9648 r9650  
    252252%}}}
    253253%QMU {{{1
    254 if md.dakota_analysis,
    255         if md.qmu_params.evaluation_concurrency~=1,
     254if md.qmu.isdakota,
     255        if md.qmu.params.evaluation_concurrency~=1,
    256256                message(['model not consistent: concurrency should be set to 1 when running dakota in library mode']);
    257257        end
    258         if ~isempty(md.part),
    259                 if numel(md.part)~=md.numberofnodes,
     258        if ~isempty(md.qmu.partition),
     259                if numel(md.qmu.partition)~=md.numberofnodes,
    260260                        message(['model not consistent: user supplied partition for qmu analysis should have size md.numberofnodes x 1 ']);
    261261                end
    262                 if find(md.part)>=md.numberofnodes,
     262                if find(md.qmu.partition)>=md.numberofnodes,
    263263                        message(['model not consistent: user supplied partition should be indexed from 0 (c-convention)']);
    264264                end
    265                 if min(md.part)~=0,
     265                if min(md.qmu.partition)~=0,
    266266                        message(['model not consistent: partition vector not indexed from 0 on']);
    267267                end
    268                 if max(md.part)>=md.numberofnodes,
     268                if max(md.qmu.partition)>=md.numberofnodes,
    269269                        message(['model not consistent: partition vector cannot have maximum index larger than number of nodes']);
    270270                end
    271                 if ~isempty(find(md.part<0)),
     271                if ~isempty(find(md.qmu.partition<0)),
    272272                        message(['model not consistent: partition vector cannot have values less than 0']);
    273273                end
    274                 if ~isempty(find(md.part>=md.npart)),
    275                         message(['model not consistent: partition vector cannot have values more than md.npart-1']);
    276                 end
    277                 if max(md.part)>=md.npart,
     274                if ~isempty(find(md.qmu.partition>=md.qmu.numberofpartitions)),
     275                        message(['model not consistent: partition vector cannot have values more than md.qmu.numberofpartitions-1']);
     276                end
     277                if max(md.qmu.partition)>=md.qmu.numberofpartitions,
    278278                        message(['model not consistent: for qmu analysis, partitioning vector cannot go over npart, number of partition areas']);
    279279                end
Note: See TracChangeset for help on using the changeset viewer.