Changeset 10430


Ignore:
Timestamp:
11/02/11 11:47:08 (13 years ago)
Author:
Mathieu Morlighem
Message:

Better test for rotation: only change CS on the boudary

Location:
issm/trunk/test
Files:
2 edited

Legend:

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

    r10382 r10430  
    2727disp(['Error between Cartesian and rotated CS: ' num2str(max(abs(vel0-vel1))/(max(abs(vel0))+eps)) ]);
    2828
     29%Now, put CS back to normal except on the side where the spc are applied
     30pos=find(x==0 | x==1000000);
     31md.diagnostic.referential(:)=NaN;
     32md.diagnostic.referential(pos,1:3)=repmat([cos(theta),sin(theta),0],size(pos,1),1);
     33md.diagnostic.referential(pos,4:6)=repmat([0,0,1],size(pos,1),1);
     34md=solve(md,DiagnosticSolutionEnum);
     35vel2=md.results.DiagnosticSolution.Vel;
     36
     37plotmodel(md,'data',vel0,'data',vel2,'data',vel2-vel0,'title','Cartesian CS','title','Rotated CS','title','difference')
     38disp(['Error between Cartesian and rotated CS: ' num2str(max(abs(vel0-vel2))/(max(abs(vel0))+eps)) ]);
     39
    2940%Fields and tolerances to track changes
    30 field_names     ={'vel1'};
    31 field_tolerances={1e-11};
     41field_names     ={'vel1','vel2'};
     42field_tolerances={1e-11,1e-11};
    3243field_values={...
    3344        vel1, ...
     45        vel2, ...
    3446        };
Note: See TracChangeset for help on using the changeset viewer.