Changeset 16332


Ignore:
Timestamp:
10/08/13 10:04:17 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: preparing mesh2dvertical

Location:
issm/trunk-jpl/src/m
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/classes/flowequation.m

    r16295 r16332  
    9494                                        md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices 1],'values',[1:2]);
    9595                                        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]);
    9699                                elseif strcmp(meshtype(md.mesh),'3D'),
    97100                                        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  
    2626                function md = checkconsistency(obj,md,solution,analyses) % {{{
    2727
     28                        if strcmp(meshtype(md.mesh),'2Dvertical'),
     29                                return;
     30                        end
     31
    2832                        if (solution==TransientSolutionEnum() & md.transient.isgia) | (solution==GiaSolutionEnum()),
    2933                                md = checkfield(md,'geometry.thickness','forcing',1,'NaN',1,'>=',0);
     
    5155                end % }}}
    5256                function marshall(obj,md,fid) % {{{
     57                        if strcmp(meshtype(md.mesh),'2Dvertical'),
     58                                return;
     59                        end
    5360                        WriteData(fid,'data',obj.surface,'format','DoubleMat','mattype',1,'enum',SurfaceEnum());
    5461                        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  
    151151                        %element data
    152152                        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;
    158154
    159155                                %Mask?
  • TabularUnified issm/trunk-jpl/src/m/classes/stressbalance.m

    r16295 r16332  
    8181                        md = checkfield(md,'stressbalance.spcvx','forcing',1);
    8282                        md = checkfield(md,'stressbalance.spcvy','forcing',1);
    83                         if strcmp(meshtype(md.mesh),'3D'), md = checkfield(md,'stressbalance.spcvz','forcing',1); end
     83                        md = checkfield(md,'stressbalance.spcvz','forcing',1);
    8484                        md = checkfield(md,'stressbalance.restol','size',[1 1],'>',0,'NaN',1);
    8585                        md = checkfield(md,'stressbalance.reltol','size',[1 1]);
     
    9696
    9797                        %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))),
    9999                                md = checkmessage(md,['model is not well posed (singular). You need at least one node with fixed velocity!']);
    100100                        end
  • TabularUnified issm/trunk-jpl/src/m/mesh/bamg.m

    r16324 r16332  
    3737%   - verbose :           level of verbosity (default is 1)
    3838%
     39%   - vertical :          is this a 2d vertical mesh (flowband, default is 0)
    3940%   - rifts :             followed by an ARGUS file that prescribes the rifts
    4041%   - toltip :            tolerance to move tip on an existing point of the domain outline
     
    100101                %update counter
    101102                count=count+nods;
     103        end
     104        if numel(getfieldvalue(options,'Markers',[]))==size(bamg_geometry.Edges,1),
     105                bamg_geometry.Edges(:,3)=getfieldvalue(options,'Markers');
    102106        end
    103107
Note: See TracChangeset for help on using the changeset viewer.