Changeset 3994
- Timestamp:
- 06/02/10 09:54:32 (15 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/@model/model.m
r3811 r3994 23 23 %Mesh 24 24 md.bamg=NaN; 25 md. type='';25 md.dim=0; 26 26 md.numberofelements=0; 27 27 md.numberofgrids=0; -
issm/trunk/src/m/classes/public/DepthAverage.m
r2557 r3994 9 9 10 10 %check that the model given in input is 3d 11 if ~ strcmpi(md.type,'3d');11 if ~md.dim==3; 12 12 error('DepthAverage error message: the model given in input must be 3d') 13 13 end -
issm/trunk/src/m/classes/public/PropagateFlagsUntilDistance.m
r2888 r3994 12 12 13 13 %make 3d work in 2d: 14 if strcmpi(md.type,'3d'),14 if md.dim==3, 15 15 md.x=md.x2d; 16 16 md.y=md.y2d; -
issm/trunk/src/m/classes/public/SectionValues.m
r2747 r3994 30 30 error('SectionValues error message: wrong resolution type. Resolution must be an array [horizontal_resolution vertical_resolution]') 31 31 end 32 if strcmpi(md.type,'3d')32 if md.dim==3 33 33 if (length(resolution)==2 & isnumeric(resolution(2))) 34 34 res_v=resolution(2); … … 79 79 80 80 %New mesh and Data interpolation 81 if strcmpi(md.type,'2d')81 if (md.dim==2) 82 82 83 83 %Interpolation of data on specified points -
issm/trunk/src/m/classes/public/averaging.m
r2998 r3994 31 31 %build some variables 32 32 line=index(:); 33 if strcmpi(md.type,'3d')33 if md.dim==3 34 34 rep=6; 35 35 areas=GetAreas(index,md.x,md.y,md.z); -
issm/trunk/src/m/classes/public/balvel.m
r1 r3994 8 8 % [velx,vely,vel]=balvel(md) 9 9 10 if ~strcmpi(md.type,'2d'),10 if md.dim~=2, 11 11 error('Only 2d meshes are allowed to compute velocity balances'); 12 12 end -
issm/trunk/src/m/classes/public/bamg.m
r3658 r3994 247 247 248 248 % Bamg Mesh parameters {{{1 249 if (~exist(options,'domain') & md.numberofgrids~=0 & strcmpi(md.type,'2d')),249 if (~exist(options,'domain') & md.numberofgrids~=0 & md.dim==2), 250 250 251 251 if isstruct(md.bamg), … … 313 313 314 314 %Fill in rest of fields: 315 md. type='2d';315 md.dim=2; 316 316 md.numberofelements=size(md.elements,1); 317 317 md.numberofgrids=length(md.x); -
issm/trunk/src/m/classes/public/collapse.m
r3760 r3994 12 12 13 13 %Check that the model is really a 3d model 14 if ~ strcmpi(md.type,'3d'),14 if ~md.dim==3, 15 15 error('collapse error message: only 3d mesh can be collapsed') 16 16 end … … 118 118 119 119 %Update mesh type 120 md. type='2d';120 md.dim=2; -
issm/trunk/src/m/classes/public/display/displaymesh.m
r3359 r3994 11 11 disp(sprintf(' Mesh:')); 12 12 13 if strcmpi(md.type,'3d'),13 if md.dim==3, 14 14 15 15 disp(sprintf('\n Elements and nodes of the original 2d mesh:')); -
issm/trunk/src/m/classes/public/extrude.m
r3811 r3994 123 123 124 124 %Update mesh type 125 md. type='3d';125 md.dim=3; 126 126 127 127 %Build global 3d mesh -
issm/trunk/src/m/classes/public/ismodelselfconsistent.m
r3759 r3994 23 23 24 24 %recursive call to ismodelselfconsistent 25 if strcmpi(md.type,'2d'),25 if (md.dim==2), 26 26 analysis=[DiagnosticAnalysisEnum PrognosticAnalysisEnum]; 27 27 else … … 58 58 error(['model not consistent: types of elements have not been set properly, run setelementstype first']) 59 59 end 60 if strcmpi(md.type,'2d'),60 if (md.dim==2), 61 61 if (ismember(PattynFormulationEnum,md.elements_type(:,1)) | ismember(StokesFormulationEnum,md.elements_type(:,2))), 62 62 error(['model not consistent: for a 2d model, only MacAyeal''s and Hutter''s elements are allowed']); … … 74 74 75 75 %ICEFRONT 76 if strcmpi(md.type,'2d'),76 if (md.dim==2), 77 77 fields={'pressureload'}; 78 78 checksize(md,fields,[NaN 4]); 79 elseif strcmpi(md.type,'3d'),79 elseif md.dim==3, 80 80 fields={'pressureload'}; 81 81 checksize(md,fields,[NaN 6]); … … 86 86 %ELEMENTS 87 87 fields={'elements'}; 88 if strcmpi(md.type,'2d'),88 if (md.dim==2), 89 89 checksize(md,fields,[md.numberofelements 3]); 90 90 else … … 129 129 %RIFTS 130 130 if md.numrifts, 131 if ~ strcmpi(md.type,'2d'),131 if ~(md.dim==2), 132 132 error(['model not consistent: models with rifts are only supported in 2d for now!']); 133 133 end … … 158 158 159 159 %CONNECTIVITY 160 if strcmpi(md.type,'2d'),160 if (md.dim==2), 161 161 if md.connectivity<9, 162 162 error('model not consistent: connectivity should be at least 9 for 2d models'); 163 163 end 164 164 end 165 if strcmpi(md.type,'3d'),165 if md.dim==3, 166 166 if md.connectivity<24, 167 167 error('model not consistent: connectivity should be at least 24 for 3d models'); … … 224 224 225 225 %CHECK THAT WE ARE NOT FULLY CONSTRAINED 226 if strcmpi(md.type,'2d'),226 if (md.dim==2), 227 227 if isempty(find(~md.spcvelocity(:,1:2))), 228 228 error(['model not consistent: model ' md.name ' is totally constrained, no need to solve!']); … … 264 264 265 265 %CHECK THAT WE ARE NOT FULLY CONSTRAINED 266 if strcmpi(md.type,'2d'),266 if (md.dim==2), 267 267 if isempty(find(~md.spcthickness(:,1))), 268 268 error(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']); … … 291 291 292 292 %dim: 293 if strcmpi(md.type,'2d'),293 if (md.dim==2), 294 294 error(['model not consistent: for a steadystate computation, model needs to be 3d']); 295 295 end … … 300 300 301 301 %EXTRUSION 302 if strcmp(md.type,'2d'),302 if (md.dim==2), 303 303 error(['model not consistent: for a ' md.analysis_type ' computation, the model must be 3d, extrude it first!']) 304 304 end 305 305 306 306 %CHECK THAT WE ARE NOT FULLY CONSTRAINED 307 if strcmpi(md.type,'2d'), 308 if isempty(find(~md.spctemperature(:,1))), 309 error(['model not consistent: model ' md.name ' is totally constrained for temperature, no need to solve!']); 310 end 307 if isempty(find(~md.spctemperature(:,1))), 308 error(['model not consistent: model ' md.name ' is totally constrained for temperature, no need to solve!']); 311 309 end 312 310 -
issm/trunk/src/m/classes/public/isresultconsistent.m
r3923 r3994 28 28 if analysis_type==DiagnosticAnalysisEnum() & md.control_analysis==0, 29 29 30 if strcmpi(md.type,'3d')30 if (md.dim==3) 31 31 fields1={'results.DiagnosticAnalysis.vx','results.DiagnosticAnalysis.vy','results.DiagnosticAnalysis.vz','results.DiagnosticAnalysis.vel'}; 32 32 fields2={'results.DiagnosticAnalysis.vel'}; … … 158 158 for iter=1:length(md.results.TransientAnalysis) 159 159 160 if strcmpi(md.type,'3d'),160 if (md.dim==3), 161 161 fields1={['results.TransientAnalysis(' num2str(iter) ').vx'],['results.TransientAnalysis(' num2str(iter) ').vy'],... 162 162 ['results.TransientAnalysis(' num2str(iter) ').vz'],['results.TransientAnalysis(' num2str(iter) ').vel'],... … … 195 195 196 196 %check melting (<=0 via penalties) 197 if strcmpi(md.type,'3d'),197 if (md.dim==3), 198 198 if any(abs(md.results.TransientAnalysis(iter).melting(md.numberofgrids2d+1:end))>tolerance) 199 199 disp(['''thermal'' result not consistent: increase penalty_melting (negative melting)']); -
issm/trunk/src/m/classes/public/marshall.m
r3811 r3994 24 24 WriteData(fid,md.analysis_type','Integer','analysis_type'); 25 25 WriteData(fid,md.sub_analysis_type','Integer','sub_analysis_type'); 26 WriteData(fid,md. type,'String','type');26 WriteData(fid,md.dim,'Integer','dim'); 27 27 WriteData(fid,md.numberofgrids,'Integer','numberofgrids'); 28 28 WriteData(fid,md.numberofelements,'Integer','numberofelements'); … … 35 35 WriteData(fid,md.gridonmacayeal,'Mat','gridonmacayeal'); 36 36 37 if strcmpi(md.type,'3d'),37 if md.dim==3, 38 38 WriteData(fid,md.numberofelements2d,'Integer','numberofelements2d'); 39 39 WriteData(fid,md.numberofgrids2d,'Integer','numberofgrids2d'); -
issm/trunk/src/m/classes/public/mechanicalproperties.m
r1862 r3994 17 17 error(['the input velocity should be of size ' num2str(md.numberofgrids) '!']) 18 18 end 19 if ~ strcmpi(md.type,'2d')19 if ~(md.dim==2) 20 20 error('only 2d model supported yet'); 21 21 end -
issm/trunk/src/m/classes/public/mesh/mesh.m
r2728 r3994 91 91 92 92 %type of model 93 md. type='2d';93 md.dim=2; 94 94 95 95 %augment counter keeping track of what has been done to this model -
issm/trunk/src/m/classes/public/mesh/meshadaptation.m
r1862 r3994 14 14 15 15 %some checks 16 if ~ strcmpi(md.type,'2d')16 if ~(md.dim==2) 17 17 error('meshadaptation error message: adaptation for 3d meshes not implemented yet') 18 18 end -
issm/trunk/src/m/classes/public/mesh/meshconvert.m
r3378 r3994 36 36 37 37 %Fill in rest of fields: 38 md. type='2d';38 md.dim=2; 39 39 md.numberofelements=size(md.elements,1); 40 40 md.numberofgrids=length(md.x); -
issm/trunk/src/m/classes/public/mesh/meshnodensity.m
r2737 r3994 77 77 78 78 %type of model 79 md. type='2d';79 md.dim=2; 80 80 81 81 %augment counter keeping track of what has been done to this model -
issm/trunk/src/m/classes/public/mesh/meshrefine.m
r1221 r3994 34 34 35 35 %type of model 36 md. type='2d';36 md.dim=2; 37 37 38 38 %augment counter keeping track of what has been done to this model -
issm/trunk/src/m/classes/public/mesh/reorder.m
r1250 r3994 9 9 error('reorder error message: no existing mesh, exiting...') 10 10 end 11 if strcmpi(md.type,'3d'),11 if md.dim==3, 12 12 error('reorder error message: 3d models not supported yet, exiting...') 13 13 end -
issm/trunk/src/m/classes/public/mesh/rifts/meshaddrifts.m
r2738 r3994 91 91 92 92 %type of model 93 md. type='2d';93 md.dim=2; 94 94 95 95 %augment counter keeping track of what has been done to this model -
issm/trunk/src/m/classes/public/modelsextract.m
r2951 r3994 21 21 22 22 %2D or 3D? 23 if strcmpi(md.type,'3d'),23 if md.dim==3, 24 24 numberofelements=md.numberofelements2d; %this will be forgotten when we get out. 25 25 flags=project2d(md,flags,1); … … 73 73 for i=1:size(flag_list,1), 74 74 disp([' ' num2str(i) '/' num2str(size(flag_list,1))]); 75 if strcmpi(md.type,'3d'),75 if md.dim==3, 76 76 flags2d=flag_list{i}; 77 77 realflags=project3d(md,flags2d,'element'); -
issm/trunk/src/m/classes/public/plot/applyoptions.m
r3547 r3994 43 43 44 44 %view 45 if strcmpi(md.type,'3d')& ~exist(options,'layer'),45 if md.dim==3 & ~exist(options,'layer'), 46 46 view(getfieldvalue(options,'view',3)); 47 47 else … … 61 61 eval(['axis ' getfieldvalue(options,'axis')]); 62 62 else 63 if ( strcmpi(md.type,'2d') | exist(options,'layer')),63 if ((md.dim==2) | exist(options,'layer')), 64 64 axis tight equal; 65 65 else -
issm/trunk/src/m/classes/public/plot/plot_basaldrag.m
r3762 r3994 9 9 10 10 %check layer 11 if strcmpi(md.type,'3d')11 if md.dim==3, 12 12 if getfieldvalue(options,'layer',1)~=1; 13 13 disp('plot_basaldrag warning: basal drag is displayed in the lower layer') -
issm/trunk/src/m/classes/public/plot/plot_penalties.m
r2439 r3994 21 21 end 22 22 23 if ~ strcmpi(md.type,'3d'),23 if ~md.dim==3, 24 24 error('no penalties to plot for ''2d'' model'); 25 25 elseif isempty(md.penalties), -
issm/trunk/src/m/classes/public/plot/plot_pressureload.m
r3235 r3994 14 14 pressureload=md.pressureload; 15 15 16 if strcmpi(md.type,'2d'),16 if (md.dim==2), 17 17 18 18 %plot mesh -
issm/trunk/src/m/classes/public/plot/plot_section.m
r2704 r3994 26 26 %replug x and y onto model so that SectionValue treats the problem correctly 27 27 if exist(options,'layer') 28 md.x=md.x2d; md.y=md.y2d; md.elements=md.elements2d; md. type='2d';28 md.x=md.x2d; md.y=md.y2d; md.elements=md.elements2d; md.dim=2; 29 29 end 30 30 … … 165 165 %apply options 166 166 options=addfielddefault(options,'title','Section value'); 167 if strcmpi(md.type,'2d')167 if (md.dim==2) 168 168 options=addfielddefault(options,'colorbar',0); 169 169 end 170 if ( strcmpi(md.type,'2d') | getfieldvalue(options,'view')==2 )170 if ((md.dim==2) | getfieldvalue(options,'view')==2 ) 171 171 options=addfielddefault(options,'xlabel','Curvilinear coordinate'); 172 172 options=addfielddefault(options,'axis','auto'); 173 173 end 174 if ( strcmpi(md.type,'3d')& getfieldvalue(options,'view')==2 )174 if (md.dim==3 & getfieldvalue(options,'view')==2 ) 175 175 options=addfielddefault(options,'ylabel','z'); 176 176 end -
issm/trunk/src/m/classes/public/plot/plot_segments.m
r3114 r3994 14 14 segments=md.segments; 15 15 16 if strcmpi(md.type,'2d'),16 if (md.dim==2), 17 17 %plot mesh 18 18 A=elements(:,1); B=elements(:,2); C=elements(:,3); -
issm/trunk/src/m/classes/public/plot/plot_tensor_components.m
r2439 r3994 10 10 upperplots=fix((i-1)/width); 11 11 if upperplots==0, leftplots=i-1; else leftplots=i-width*upperplots-1; end 12 if strcmpi(md.type,'2d')%3 components -> 3 indexes12 if (md.dim==2)%3 components -> 3 indexes 13 13 index1=4*width*upperplots+2*leftplots+1; 14 14 index2=index1+1; 15 15 index3=index1+width*2; 16 elseif strcmpi(md.type,'3d')%6 components -> 6 indexes16 elseif md.dim==3%6 components -> 6 indexes 17 17 index1=3*3*width*upperplots+3*leftplots+1; 18 18 index2=index1+1; … … 28 28 [tensor.yy isongrid isquiver]=processdata(md,tensor.yy,options); 29 29 [tensor.xy isongrid isquiver]=processdata(md,tensor.xy,options); 30 if strcmpi(md.type,'3d')30 if md.dim==3 31 31 [tensor.xz isongrid isquiver]=processdata(md,tensor.xz,options); 32 32 [tensor.yz isongrid isquiver]=processdata(md,tensor.yz,options); … … 34 34 end 35 35 36 if ( strcmpi(md.type,'2d')),36 if ((md.dim==2)), 37 37 subplot(2*width,2*width,index1), 38 38 plot_unit(x,y,z,elements,tensor.xx,isongrid,is2d,isquiver,options) -
issm/trunk/src/m/classes/public/plot/plot_tensor_principal.m
r2649 r3994 10 10 upperplots=fix((i-1)/width); 11 11 if upperplots==0, leftplots=i-1; else leftplots=i-width*upperplots-1; end 12 if strcmpi(md.type,'2d')%3 components -> 3 indexes12 if (md.dim==2)%3 components -> 3 indexes 13 13 index1=4*width*upperplots+2*leftplots+1; 14 14 index2=index1+1; … … 16 16 index4=index3+1; 17 17 newwidth=2*width; 18 elseif strcmpi(md.type,'3d')%6 components -> 6 indexes18 elseif md.dim==3%6 components -> 6 indexes 19 19 index1=3*3*width*upperplots+3*leftplots+1; 20 20 index2=index1+1; … … 31 31 type2=[type 'axis2']; 32 32 plot_tensor_principalaxis(md,options,newwidth,index2,tensor,type2,plot_options); 33 if strcmpi(md.type,'3d')33 if md.dim==3 34 34 type3=[type 'axis3']; 35 35 plot_tensor_principalaxis(md,options,newwidth,index3,tensor,type3,plot_options); … … 40 40 [tensor.principalvalue1 isongrid isquiver]=processdata(md,tensor.principalvalue1,options); 41 41 [tensor.principalvalue2 isongrid isquiver]=processdata(md,tensor.principalvalue2,options); 42 if strcmpi(md.type,'3d')42 if md.dim==3 43 43 [tensor.principalvalue3 isongrid isquiver]=processdata(md,tensor.principalvalue3,options); 44 44 end 45 45 46 if ( strcmpi(md.type,'2d')),46 if ((md.dim==2)), 47 47 subplot(2*width,2*width,index3) 48 48 plot_unit(x,y,z,elements,tensor.principalvalue1,isongrid,is2d,isquiver,options) -
issm/trunk/src/m/classes/public/plot/plot_tensor_principalaxis.m
r2439 r3994 13 13 [x y z elements is2d]=processmesh(md,options); 14 14 15 if ( strcmpi(md.type,'2d')),15 if ((md.dim==2)), 16 16 eval(['Vx=tensor.principalaxis' type(end) '(:,1); Vy=tensor.principalaxis' type(end) '(:,2);']) 17 17 eval(['value=tensor.principalvalue' type(end) ';']); … … 33 33 34 34 %plot quivers 35 if strcmpi(md.type,'2d'),35 if (md.dim==2), 36 36 37 37 %density -
issm/trunk/src/m/classes/public/plot/plot_transient_results.m
r2450 r3994 41 41 clear string; 42 42 43 if strcmpi(md.type,'3d'),43 if md.dim==3, 44 44 string='plotmodel(md'; 45 45 for i=1:length(md.results.transient), … … 67 67 clear string; 68 68 69 if strcmpi(md.type,'3d'),69 if md.dim==3, 70 70 string='plotmodel(md'; 71 71 for i=2:length(md.results.transient), -
issm/trunk/src/m/classes/public/plot/processdata.m
r2700 r3994 25 25 26 26 %check length 27 if datasize(1)~=md.numberofgrids & datasize(1)~=md.numberofelements & datasize(1)~=md.numberofgrids*6 & ( strcmpi(md.type,'3d')& ~(datasize(1)==md.numberofelements2d | datasize(1)==md.numberofgrids2d))27 if datasize(1)~=md.numberofgrids & datasize(1)~=md.numberofelements & datasize(1)~=md.numberofgrids*6 & (md.dim==3 & ~(datasize(1)==md.numberofelements2d | datasize(1)==md.numberofgrids2d)) 28 28 error('plotmodel error message: data not supported yet'); 29 29 end … … 34 34 35 35 %check number of columns, add zeros if necessary, 36 if ( strcmpi(md.type,'3d'))36 if (md.dim==3) 37 37 if datasize(2)==2, 38 38 data=[data, zeros(datasize(1),1)]; … … 40 40 error('plotmodel error message: data provided should have 2 or 3 columns for quiver plot, and 1 for regular plot'); 41 41 end 42 elseif ( strcmpi(md.type,'2d') & datasize(2)~=2),42 elseif ((md.dim==2) & datasize(2)~=2), 43 43 error('plotmodel error message: data provided should have 2 columns for quiver plot, and 1 for regular plot'); 44 44 end … … 59 59 60 60 %treat the case datasize(1)=grids2d 61 if ( strcmpi(md.type,'3d')& datasize(1)==md.numberofgrids2d),61 if (md.dim==3 & datasize(1)==md.numberofgrids2d), 62 62 data=project3d(md,data,'node'); 63 63 datasize(1)=md.numberofgrids; … … 66 66 67 67 %treat the case datasize(1)=grids2d 68 if ( strcmpi(md.type,'3d')& datasize(1)==md.numberofelements2d),68 if (md.dim==3 & datasize(1)==md.numberofelements2d), 69 69 data=project3d(md,data,'element'); 70 70 datasize(1)=md.numberofelements; -
issm/trunk/src/m/classes/public/plot/processmesh.m
r2439 r3994 24 24 25 25 %is it a 2d plot? 26 if strcmpi(md.type,'2d');26 if (md.dim==2); 27 27 is2d=1; 28 28 else -
issm/trunk/src/m/classes/public/setelementstype.m
r2959 r3994 51 51 52 52 %Check that no pattyn or stokes for 2d mesh 53 if strcmpi(md.type,'2d'),53 if (md.dim==2), 54 54 if any(stokesflag | pattynflag) 55 55 error('setelementstype error message: stokes and pattyn elements no allowed in 2d mesh, extrude it first') -
issm/trunk/src/m/classes/public/slope.m
r1236 r3994 6 6 7 7 %load some variables (it is much faster if the variab;es are loaded from md once for all) 8 if strcmpi(md.type,'2d'),8 if (md.dim==2), 9 9 numberofelements=md.numberofelements; 10 10 numberofgrids=md.numberofgrids; … … 26 26 s=sqrt(sx.^2+sy.^2); 27 27 28 if strcmpi(md.type,'3d'),28 if md.dim==3, 29 29 sx=project3d(md,sx,'element'); 30 30 sy=project3d(md,sy,'element'); -
issm/trunk/src/m/solutions/jpl/transient.m
r738 r3994 8 8 t1=clock; 9 9 10 if strcmpi(md.type,'2d'),10 if (md.dim==2), 11 11 md=transient2d(md); 12 12 else -
issm/trunk/src/m/utils/BC/SetIceSheetBC.m
r3756 r3994 21 21 22 22 %segment on neumann (Ice Front) -> none 23 if strcmpi(md.type,'2d')23 if (md.dim==2) 24 24 md.pressureload=zeros(0,4); 25 25 else -
issm/trunk/src/m/utils/BC/SetIceShelfBC.m
r3756 r3994 35 35 %segment on Neumann (Ice Front) 36 36 pos=find(gridonicefront(md.segments(:,1)) | gridonicefront(md.segments(:,2))); 37 if strcmpi(md.type,'2d')37 if (md.dim==2) 38 38 pressureload=md.segments(pos,:); 39 elseif strcmpi(md.type,'3d')39 elseif md.dim==3 40 40 pressureload_layer1=[md.segments(pos,1:2) md.segments(pos,2)+md.numberofgrids2d md.segments(pos,1)+md.numberofgrids2d md.segments(pos,3)]; 41 41 pressureload=[]; -
issm/trunk/src/m/utils/BC/SetMarineIceSheetBC.m
r3756 r3994 46 46 %segment on Neumann (Ice Front) 47 47 pos=find(gridonicefront(md.segments(:,1)) | gridonicefront(md.segments(:,2))); 48 if strcmpi(md.type,'2d')48 if (md.dim==2) 49 49 pressureload=md.segments(pos,:); 50 elseif strcmpi(md.type,'3d')50 elseif md.dim==3 51 51 pressureload_layer1=[md.segments(pos,1:2) md.segments(pos,2)+md.numberofgrids2d md.segments(pos,1)+md.numberofgrids2d md.segments(pos,3)]; 52 52 pressureload=[]; -
issm/trunk/src/m/utils/Mesh/argusmesh.m
r2664 r3994 88 88 md.elementonsurface=ones(md.numberofelements,1); 89 89 md.counter=1; 90 md. type='2d';90 md.dim=2; 91 91 md.riftoutline=''; 92 92 md.domainoutline=['' infile '']; -
issm/trunk/src/m/utils/Mesh/squaremesh.m
r2777 r3994 73 73 74 74 %plug other field 75 md. type='2d';75 md.dim=2; 76 76 md.counter=1; 77 77 md.riftoutline=''; -
issm/trunk/src/m/utils/Nightly/testsgetfields.m
r3923 r3994 27 27 fields={'dakota.importancefactors'}; 28 28 else 29 if strcmpi(md.type,'3d')29 if md.dim==3 30 30 fields={'DiagnosticAnalysis.vy','DiagnosticAnalysis.vz'}; 31 31 else … … 44 44 45 45 elseif (analysis_type==TransientAnalysisEnum), 46 if strcmpi(md.type,'3d')46 if md.dim==3 47 47 fields={'TransientAnalysis(end).vel','TransientAnalysis(end).pressure','TransientAnalysis(end).temperature','TransientAnalysis(end).melting','TransientAnalysis(end).thickness','TransientAnalysis(end).surface','TransientAnalysis(end).bed'}; 48 48 else -
issm/trunk/src/m/utils/Nightly/testsgettolerance.m
r3923 r3994 35 35 36 36 elseif (analysis_type==TransientAnalysisEnum), 37 if strcmpi(md.type,'2d'),37 if (md.dim==2), 38 38 tolerance=10^-11; 39 39 else
Note:
See TracChangeset
for help on using the changeset viewer.