Changeset 27954
- Timestamp:
- 10/10/23 10:14:26 (17 months ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/isoline.m
r27789 r27954 30 30 index=md.mesh.elements; 31 31 end 32 if exist(options,'amr') 33 amr = getfieldvalue(options,'amr'); 34 x=amr.MeshX; 35 y=amr.MeshY; 36 index=amr.MeshElements; 37 end 32 38 33 39 %Deal with z coordinate … … 44 50 end 45 51 else 46 if length(field)~= md.mesh.numberofvertices52 if length(field)~=numel(x) 47 53 error('field provided should be of size md.mesh.numberofvertices'); 48 54 end -
issm/trunk-jpl/src/m/plot/plot_transient_movie.m
r27044 r27954 74 74 range = [Inf -Inf]; 75 75 for i=steps 76 [data datatype]=processdata(md,results(i).(field),options); 76 if isfield(results(i), 'MeshElements') 77 options=changefieldvalue(options,'amr', i); 78 end 79 [data datatype]=processdata(md,results(i).(field), options); 77 80 range(1) = min(range(1),min(data)); 78 81 range(2) = max(range(2),max(data)); … … 80 83 options=addfielddefault(options,'caxis',range); 81 84 end 82 83 85 84 86 %Process mesh once for all … … 91 93 92 94 if ~isempty(results(i).(field)), 95 %Process mesh if necessary 96 if isfield(results(i), 'MeshElements') 97 options=changefieldvalue(options,'amr', i); 98 [x y z elements is2d isplanet]=processmesh(md,results(i).(field),options); 99 end 100 93 101 %process data 94 102 [data datatype]=processdata(md,results(i).(field),options); … … 114 122 if exist(options,'icefront') 115 123 if dimension(md.mesh)==2 116 contours=isoline(md, results(i).MaskIceLevelset,'output','matrix'); 124 if exist(options, 'amr') 125 contours=isoline(md, results(i).MaskIceLevelset,'output','matrix', 'amr', results(i)); 126 else 127 contours=isoline(md, results(i).MaskIceLevelset,'output','matrix'); 128 end 117 129 else 118 130 ice = project2d(md, results(i).MaskIceLevelset, 1);
Note:
See TracChangeset
for help on using the changeset viewer.