Ignore:
Timestamp:
09/08/11 08:07:18 (14 years ago)
Author:
seroussi
Message:

added diagnostic class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/NightlyRun/test236.m

    r9664 r9679  
    3434
    3535%Boundary conditions:
    36 md.spcvx=NaN*ones(md.numberofnodes,1);
    37 md.spcvy=NaN*ones(md.numberofnodes,1);
    38 md.spcvz=NaN*ones(md.numberofnodes,1);
     36md.diagnostic.spcvx=NaN*ones(md.numberofnodes,1);
     37md.diagnostic.spcvy=NaN*ones(md.numberofnodes,1);
     38md.diagnostic.spcvz=NaN*ones(md.numberofnodes,1);
    3939
    4040%constrain flanks to 0 normal velocity
    4141pos=find(md.x==xmin | md.x==xmax);
    42 md.spcvx(pos)=0;
    43 md.spcvz(pos)=NaN;
     42md.diagnostic.spcvx(pos)=0;
     43md.diagnostic.spcvz(pos)=NaN;
    4444
    4545%constrain grounding line to 0 velocity
    4646pos=find(md.y==ymin);
    47 md.spcvx(pos)=0;
    48 md.spcvy(pos)=0;
     47md.diagnostic.spcvx(pos)=0;
     48md.diagnostic.spcvy(pos)=0;
    4949
    5050%icefront
    5151nodeonicefront=zeros(md.numberofnodes,1);
    5252pos=find(md.y==ymax); nodeonicefront(pos)=1;
    53 pos=find(nodeonicefront(md.segments(:,1)) | nodeonicefront(md.segments(:,2))); pressureload=md.segments(pos,:);
    54 pressureload=[pressureload 1*md.mask.elementonfloatingice(pressureload(:,end))];
    55 md.pressureload=pressureload;
     53pos=find(nodeonicefront(md.segments(:,1)) | nodeonicefront(md.segments(:,2))); diagnostic.icefront=md.segments(pos,:);
     54diagnostic.icefront=[diagnostic.icefront 1*md.mask.elementonfloatingice(diagnostic.icefront(:,end))];
     55md.diagnostic.icefront=diagnostic.icefront;
    5656
    5757%partitioning
     
    7777
    7878%imperative!
    79 md.eps_rel=10^-10; %tighten for qmu analysese
     79md.diagnostic.reltol=10^-10; %tighten for qmu analysese
    8080md.qmu.isdakota=1;
    8181
Note: See TracChangeset for help on using the changeset viewer.