Changeset 16332
- Timestamp:
- 10/08/13 10:04:17 (11 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/flowequation.m ¶
r16295 r16332 94 94 md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices 1],'values',[1:2]); 95 95 md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements 1],'values',[1:2]); 96 elseif strcmp(meshtype(md.mesh),'2Dvertical') 97 md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices 1],'values',[4]); 98 md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements 1],'values',[4]); 96 99 elseif strcmp(meshtype(md.mesh),'3D'), 97 100 md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices 1],'values',[0:8]); -
TabularUnified issm/trunk-jpl/src/m/classes/geometry.m ¶
r15133 r16332 26 26 function md = checkconsistency(obj,md,solution,analyses) % {{{ 27 27 28 if strcmp(meshtype(md.mesh),'2Dvertical'), 29 return; 30 end 31 28 32 if (solution==TransientSolutionEnum() & md.transient.isgia) | (solution==GiaSolutionEnum()), 29 33 md = checkfield(md,'geometry.thickness','forcing',1,'NaN',1,'>=',0); … … 51 55 end % }}} 52 56 function marshall(obj,md,fid) % {{{ 57 if strcmp(meshtype(md.mesh),'2Dvertical'), 58 return; 59 end 53 60 WriteData(fid,'data',obj.surface,'format','DoubleMat','mattype',1,'enum',SurfaceEnum()); 54 61 WriteData(fid,'data',obj.thickness,'format','DoubleMat','mattype',1,'enum',ThicknessEnum(),'forcinglength',md.mesh.numberofvertices+1); -
TabularUnified issm/trunk-jpl/src/m/classes/mesh2dvertical.m ¶
r16325 r16332 151 151 %element data 152 152 if (datasize(1)==md.mesh.numberofelements & datasize(2)==1), 153 154 %Initialize datatype if non patch 155 if datatype~=4 & datatype~=5, 156 datatype=1; 157 end 153 datatype=1; 158 154 159 155 %Mask? -
TabularUnified issm/trunk-jpl/src/m/classes/stressbalance.m ¶
r16295 r16332 81 81 md = checkfield(md,'stressbalance.spcvx','forcing',1); 82 82 md = checkfield(md,'stressbalance.spcvy','forcing',1); 83 if strcmp(meshtype(md.mesh),'3D'), md = checkfield(md,'stressbalance.spcvz','forcing',1); end83 md = checkfield(md,'stressbalance.spcvz','forcing',1); 84 84 md = checkfield(md,'stressbalance.restol','size',[1 1],'>',0,'NaN',1); 85 85 md = checkfield(md,'stressbalance.reltol','size',[1 1]); … … 96 96 97 97 %singular solution 98 if ~(any(~isnan(md.stressbalance.spcvx)) &any(~isnan(md.stressbalance.spcvy))),98 if ~(any(~isnan(md.stressbalance.spcvx)) | any(~isnan(md.stressbalance.spcvy))), 99 99 md = checkmessage(md,['model is not well posed (singular). You need at least one node with fixed velocity!']); 100 100 end -
TabularUnified issm/trunk-jpl/src/m/mesh/bamg.m ¶
r16324 r16332 37 37 % - verbose : level of verbosity (default is 1) 38 38 % 39 % - vertical : is this a 2d vertical mesh (flowband, default is 0) 39 40 % - rifts : followed by an ARGUS file that prescribes the rifts 40 41 % - toltip : tolerance to move tip on an existing point of the domain outline … … 100 101 %update counter 101 102 count=count+nods; 103 end 104 if numel(getfieldvalue(options,'Markers',[]))==size(bamg_geometry.Edges,1), 105 bamg_geometry.Edges(:,3)=getfieldvalue(options,'Markers'); 102 106 end 103 107
Note:
See TracChangeset
for help on using the changeset viewer.