Changeset 11924


Ignore:
Timestamp:
04/05/12 08:58:49 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added check for md.solver

Location:
issm/trunk-jpl/src/m/classes
Files:
6 edited

Legend:

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

    r11869 r11924  
    110110                                pos=find(md.mask.vertexongroundedice & md.mesh.vertexonbed);
    111111                                if any(~isnan(md.diagnostic.referential(pos,:))),
    112                                         checkmessage(['model ' md.miscellaneous.name ' not consistent. No referential should be specified for basal vertices of grounded ice']);
     112                                        checkmessage(['no referential should be specified for basal vertices of grounded ice']);
    113113                                end
    114114                        end
  • issm/trunk-jpl/src/m/classes/initialization.m

    r11869 r11924  
    4646                                %Triangle with zero velocity
    4747                                if any(sum(abs(md.initialization.vx(md.mesh.elements)),2)==0 & sum(abs(md.initialization.vy(md.mesh.elements)),2)==0)
    48                                         checkmessage('model not consistent: at least one triangle has all its vertices with a zero velocity');
     48                                        checkmessage('at least one triangle has all its vertices with a zero velocity');
    4949                                end
    5050                        end
  • issm/trunk-jpl/src/m/classes/qmu.m

    r11869 r11924  
    4141
    4242                        if md.qmu.params.evaluation_concurrency~=1,
    43                                 checkmessage(['model not consistent: concurrency should be set to 1 when running dakota in library mode']);
     43                                checkmessage(['concurrency should be set to 1 when running dakota in library mode']);
    4444                        end
    4545                        if ~isempty(md.qmu.partition),
    4646                                if numel(md.qmu.partition)~=md.mesh.numberofvertices,
    47                                         checkmessage(['model not consistent: user supplied partition for qmu analysis should have size md.mesh.numberofvertices x 1 ']);
     47                                        checkmessage(['user supplied partition for qmu analysis should have size md.mesh.numberofvertices x 1 ']);
    4848                                end
    4949                                if find(md.qmu.partition)>=md.mesh.numberofvertices,
    50                                         checkmessage(['model not consistent: user supplied partition should be indexed from 0 (c-convention)']);
     50                                        checkmessage(['user supplied partition should be indexed from 0 (c-convention)']);
    5151                                end
    5252                                if min(md.qmu.partition)~=0,
    53                                         checkmessage(['model not consistent: partition vector not indexed from 0 on']);
     53                                        checkmessage(['partition vector not indexed from 0 on']);
    5454                                end
    5555                                if max(md.qmu.partition)>=md.mesh.numberofvertices,
    56                                         checkmessage(['model not consistent: partition vector cannot have maximum index larger than number of nodes']);
     56                                        checkmessage(['partition vector cannot have maximum index larger than number of nodes']);
    5757                                end
    5858                                if ~isempty(find(md.qmu.partition<0)),
    59                                         checkmessage(['model not consistent: partition vector cannot have values less than 0']);
     59                                        checkmessage(['partition vector cannot have values less than 0']);
    6060                                end
    6161                                if ~isempty(find(md.qmu.partition>=md.qmu.numberofpartitions)),
    62                                         checkmessage(['model not consistent: partition vector cannot have values more than md.qmu.numberofpartitions-1']);
     62                                        checkmessage(['partition vector cannot have values more than md.qmu.numberofpartitions-1']);
    6363                                end
    6464                                if max(md.qmu.partition)>=md.qmu.numberofpartitions,
    65                                         checkmessage(['model not consistent: for qmu analysis, partitioning vector cannot go over npart, number of partition areas']);
     65                                        checkmessage(['for qmu analysis, partitioning vector cannot go over npart, number of partition areas']);
    6666                                end
    6767                        end
     
    6969                        if ~strcmpi(md.cluster.name,'none'),
    7070                                if md.settings.waitonlock==0,
    71                                         checkmessage(['model is not correctly configured: waitonlock should be activated when running qmu in parallel mode!']);
     71                                        checkmessage(['waitonlock should be activated when running qmu in parallel mode!']);
    7272                                end
    7373                        end
  • issm/trunk-jpl/src/m/classes/rifts.m

    r11869 r11924  
    2929                        if numrifts,
    3030                                if ~(md.mesh.dimension==2),
    31                                         checkmessage(['model not consistent: models with rifts are only supported in 2d for now!']);
     31                                        checkmessage(['models with rifts are only supported in 2d for now!']);
    3232                                end
    3333                                if ~isstruct(obj.riftstruct),
  • issm/trunk-jpl/src/m/classes/solver.m

    r11871 r11924  
    5252                 end % }}}
    5353                 function checkconsistency(obj,md,solution,analyses) % {{{
    54                          %Nothing checked
     54                         analyses=properties(obj);
     55                         for i=1:numel(analyses),
     56                                 if isempty(fieldnames(obj.(analyses{i})))
     57                                         checkmessage(['md.solver.' analyses{i} ' is empty']);
     58                                 end
     59                         end
    5560                 end % }}}
    5661                 function PetscFile(solver,filename) % {{{
  • issm/trunk-jpl/src/m/classes/steadystate.m

    r11869 r11924  
    3232
    3333                        if md.timestepping.time_step~=0,
    34                                 checkmessage(['model not consistent: for a steadystate computation, timestepping.time_step must be zero.']);
     34                                checkmessage(['for a steadystate computation, timestepping.time_step must be zero.']);
    3535                        end
    3636
    3737                        if isnan(md.diagnostic.reltol),
    38                                 checkmessage(['model not consistent: for a steadystate computation, diagnostic.reltol (relative convergence criterion) must be defined!']);
     38                                checkmessage(['for a steadystate computation, diagnostic.reltol (relative convergence criterion) must be defined!']);
    3939                        end
    4040                end % }}}
Note: See TracChangeset for help on using the changeset viewer.