source:
issm/oecreview/Archive/11229-11250/ISSM-11233-11234.diff
Last change on this file was 11514, checked in by , 13 years ago | |
---|---|
File size: 3.3 KB |
-
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/plot/processmesh.m
7 7 % See also: PLOTMODEL, PROCESSDATA 8 8 9 9 %some checks 10 if md.mesh.numberofvertices==0, 11 error('plot error message: mesh is empty') 12 end 10 13 if md.mesh.numberofvertices==md.mesh.numberofelements 11 error( 'plot error message: the number of elements is the same as the number of nodes! cannot plot anything with model/plot, use matlab/plot instead')14 error(['plot error message: the number of elements is the same as the number of nodes...']); 12 15 end 13 16 14 17 if (isempty(data) | ~isstruct(data)), -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/setmask.m
1 1 function md=setmask(md,floatingicename,groundedicename) 2 % GEOGRAPHY- establish boundaries between grounded and floating ice.2 %SETMASK - establish boundaries between grounded and floating ice. 3 3 % 4 4 % By default, ice is considered grounded. The contour floatingicename defines nodes 5 5 % for which ice is floating. The contour groundedicename defines nodes inside an floatingice, -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/parameterization/parameterize.m
35 35 me2=struct('message',me.message,'stack',me.stack); 36 36 37 37 %rename parameter file 38 me2.message=regexprep(me2.message,[temporaryname '.m'],parametername); 38 39 for i=1:length(me2.stack)-1, 39 if (strncmp(fliplr(me2.stack(i).file),fliplr([temporaryname '.m']),length(temporaryname)+2)) 40 me2.stack(i).file=parametername; 41 end 42 if strcmp(me2.stack(i).name,temporaryname), 43 me2.stack(i).name=parametername; 44 end 45 if strcmp(me2.stack(i).name,temporaryname), 46 %remove parameterize.m error "TemporaryParameterFile" misleading 40 me2.stack(i).file=regexprep(me2.stack(i).file,[temporaryname '.m'],parametername); 41 me2.stack(i).name=regexprep(me2.stack(i).name,[temporaryname '.m'],parametername); 42 if strcmp(me2.stack(i).name,'parameterize'), 43 %remove error (eval(temporaryname);) misleading 47 44 me2.stack(i)=[]; 48 45 end 49 46 end -
proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/extrude.m
58 58 end 59 59 60 60 if numlayers<2, 61 disp('number of layers should be at least 2. returning initial model...'); 62 return 61 error('number of layers should be at least 2'); 63 62 end 63 if md.mesh.dimension==3, 64 error('Cannot extrude a 3d mesh (extrude cannot be called more than once)'); 65 end 64 66 65 67 %Initialize with the 2d mesh 66 68 x3d=[];
Note:
See TracBrowser
for help on using the repository browser.