Changeset 9221


Ignore:
Timestamp:
08/09/11 13:42:40 (14 years ago)
Author:
Mathieu Morlighem
Message:

cosmetics

Location:
issm/trunk/src/m/model
Files:
3 edited

Legend:

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

    r9218 r9221  
    371371                        end
    372372
    373                         %DIRICHLET IF THICKNESS <= 0
    374                         %Check the size of spcthickness
    375                         fields={'spcthickness'};
    376                         checksize(md,fields,[md.numberofnodes 1]);
    377                         if any(md.thickness<=0),
    378                                 pos=find(md.thickness<=0);
    379                                 if any(isnan(md.spcthickness(pos))),
    380                                         message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']);
    381                                 end
    382                         end
    383 
    384373                        %ROTATED SPC
    385374                        %CHECK THAT EACH LINES CONTAINS ONLY NAN VALUES OR NO NAN VALUES
     
    470459                        fields={'surface_mass_balance'};
    471460                        checkforcing(md,fields);
     461
     462                        %DIRICHLET
     463                        fields={'spcthickness'};
     464                        checkforcing(md,fields);
     465
     466                        %DIRICHLET IF THICKNESS <= 0
     467                        %Check the size of spcthickness
     468                        if any(md.thickness<=0),
     469                                pos=find(md.thickness<=0);
     470                                if any(isnan(md.spcthickness(pos))),
     471                                        message(['model not consistent: model ' md.name ' has some nodes with 0 thickness']);
     472                                end
     473                        end
     474
    472475                        %}}}
    473476                case HydrologyAnalysisEnum,
  • issm/trunk/src/m/model/loadresultsfromdisk.m

    r7935 r9221  
    2525        md.solution_type=structure(1).SolutionType;
    2626
    27         %Check result is consistent, only if it exists
    28         %disp(sprintf('%s\n','checking result consistency'));
    29         %if ~isresultconsistent(md,structure(1).SolutionType), After many uses, found out its useless.
    30         %       %it would be very cruel to use an error, it would kill the computed results (although they are not consistent...)
    31         %       disp('!! results not consistent correct the model !!')
    32         %end
    33 
    3427%post processes qmu results if necessary
    3528else
  • issm/trunk/src/m/model/parseresultsfromdisk.m

    r6749 r9221  
    44%   Usage:
    55%      results=parseresultsfromdisk(filename,iosplit)
    6 
    7 
    86
    97if iosplit,
Note: See TracChangeset for help on using the changeset viewer.