Changeset 10430
- Timestamp:
- 11/02/11 11:47:08 (13 years ago)
- Location:
- issm/trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/test/NightlyRun/test1601.m
r10382 r10430 27 27 disp(['Error between Cartesian and rotated CS: ' num2str(max(abs(vel0-vel1))/(max(abs(vel0))+eps)) ]); 28 28 29 %Now, put CS back to normal except on the side where the spc are applied 30 pos=find(x==0 | x==1000000); 31 md.diagnostic.referential(:)=NaN; 32 md.diagnostic.referential(pos,1:3)=repmat([cos(theta),sin(theta),0],size(pos,1),1); 33 md.diagnostic.referential(pos,4:6)=repmat([0,0,1],size(pos,1),1); 34 md=solve(md,DiagnosticSolutionEnum); 35 vel2=md.results.DiagnosticSolution.Vel; 36 37 plotmodel(md,'data',vel0,'data',vel2,'data',vel2-vel0,'title','Cartesian CS','title','Rotated CS','title','difference') 38 disp(['Error between Cartesian and rotated CS: ' num2str(max(abs(vel0-vel2))/(max(abs(vel0))+eps)) ]); 39 29 40 %Fields and tolerances to track changes 30 field_names ={'vel1' };31 field_tolerances={1e-11 };41 field_names ={'vel1','vel2'}; 42 field_tolerances={1e-11,1e-11}; 32 43 field_values={... 33 44 vel1, ... 45 vel2, ... 34 46 };
Note:
See TracChangeset
for help on using the changeset viewer.