Changeset 3994


Ignore:
Timestamp:
06/02/10 09:54:32 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved md.type to md.dim and 2d to 2, 3d to 3

Location:
issm/trunk/src/m
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/@model/model.m

    r3811 r3994  
    2323        %Mesh
    2424        md.bamg=NaN;
    25         md.type='';
     25        md.dim=0;
    2626        md.numberofelements=0;
    2727        md.numberofgrids=0;
  • issm/trunk/src/m/classes/public/DepthAverage.m

    r2557 r3994  
    99
    1010%check that the model given in input is 3d
    11 if ~strcmpi(md.type,'3d');
     11if ~md.dim==3;
    1212        error('DepthAverage error message: the model given in input must be 3d')
    1313end
  • issm/trunk/src/m/classes/public/PropagateFlagsUntilDistance.m

    r2888 r3994  
    1212
    1313%make 3d work in 2d:
    14 if strcmpi(md.type,'3d'),
     14if md.dim==3,
    1515        md.x=md.x2d;
    1616        md.y=md.y2d;
  • issm/trunk/src/m/classes/public/SectionValues.m

    r2747 r3994  
    3030        error('SectionValues error message: wrong resolution type. Resolution must be an array [horizontal_resolution vertical_resolution]')
    3131end
    32 if strcmpi(md.type,'3d')
     32if md.dim==3
    3333        if (length(resolution)==2 & isnumeric(resolution(2)))
    3434                res_v=resolution(2);
     
    7979
    8080%New mesh and Data interpolation
    81 if strcmpi(md.type,'2d')
     81if (md.dim==2)
    8282
    8383        %Interpolation of data on specified points
  • issm/trunk/src/m/classes/public/averaging.m

    r2998 r3994  
    3131%build some variables
    3232line=index(:);
    33 if strcmpi(md.type,'3d')
     33if md.dim==3
    3434        rep=6;
    3535        areas=GetAreas(index,md.x,md.y,md.z);
  • issm/trunk/src/m/classes/public/balvel.m

    r1 r3994  
    88%      [velx,vely,vel]=balvel(md)
    99
    10 if ~strcmpi(md.type,'2d'),
     10if md.dim~=2,
    1111        error('Only 2d meshes are allowed to compute velocity balances');
    1212end
  • issm/trunk/src/m/classes/public/bamg.m

    r3658 r3994  
    247247
    248248% Bamg Mesh parameters {{{1
    249 if (~exist(options,'domain') & md.numberofgrids~=0 & strcmpi(md.type,'2d')),
     249if (~exist(options,'domain') & md.numberofgrids~=0 & md.dim==2),
    250250
    251251        if isstruct(md.bamg),
     
    313313
    314314%Fill in rest of fields:
    315 md.type='2d';
     315md.dim=2;
    316316md.numberofelements=size(md.elements,1);
    317317md.numberofgrids=length(md.x);
  • issm/trunk/src/m/classes/public/collapse.m

    r3760 r3994  
    1212
    1313%Check that the model is really a 3d model
    14 if ~strcmpi(md.type,'3d'),
     14if ~md.dim==3,
    1515        error('collapse error message: only 3d mesh can be collapsed')
    1616end
     
    118118
    119119%Update mesh type
    120 md.type='2d';
     120md.dim=2;
  • issm/trunk/src/m/classes/public/display/displaymesh.m

    r3359 r3994  
    1111disp(sprintf('   Mesh:'));
    1212
    13 if strcmpi(md.type,'3d'),
     13if md.dim==3,
    1414
    1515        disp(sprintf('\n      Elements and nodes of the original 2d mesh:'));
  • issm/trunk/src/m/classes/public/extrude.m

    r3811 r3994  
    123123
    124124%Update mesh type
    125 md.type='3d';
     125md.dim=3;
    126126
    127127%Build global 3d mesh
  • issm/trunk/src/m/classes/public/ismodelselfconsistent.m

    r3759 r3994  
    2323
    2424        %recursive call to ismodelselfconsistent
    25         if strcmpi(md.type,'2d'),
     25        if (md.dim==2),
    2626                analysis=[DiagnosticAnalysisEnum PrognosticAnalysisEnum];
    2727        else
     
    5858        error(['model not consistent: types of elements have not been set properly, run setelementstype first'])
    5959end
    60 if strcmpi(md.type,'2d'),
     60if (md.dim==2),
    6161        if (ismember(PattynFormulationEnum,md.elements_type(:,1)) |  ismember(StokesFormulationEnum,md.elements_type(:,2))),
    6262                error(['model not consistent: for a 2d model, only MacAyeal''s and Hutter''s elements are allowed']);
     
    7474
    7575%ICEFRONT
    76 if strcmpi(md.type,'2d'),
     76if (md.dim==2),
    7777        fields={'pressureload'};
    7878        checksize(md,fields,[NaN 4]);
    79 elseif strcmpi(md.type,'3d'),
     79elseif md.dim==3,
    8080        fields={'pressureload'};
    8181        checksize(md,fields,[NaN 6]);
     
    8686%ELEMENTS
    8787fields={'elements'};
    88 if strcmpi(md.type,'2d'),
     88if (md.dim==2),
    8989        checksize(md,fields,[md.numberofelements 3]);
    9090else
     
    129129%RIFTS
    130130if md.numrifts,
    131         if ~strcmpi(md.type,'2d'),
     131        if ~(md.dim==2),
    132132                error(['model not consistent: models with rifts are only supported in 2d for now!']);
    133133        end
     
    158158
    159159%CONNECTIVITY
    160 if strcmpi(md.type,'2d'),
     160if (md.dim==2),
    161161        if md.connectivity<9,
    162162                error('model not consistent: connectivity should be at least 9 for 2d models');
    163163        end
    164164end
    165 if strcmpi(md.type,'3d'),
     165if md.dim==3,
    166166        if md.connectivity<24,
    167167                error('model not consistent: connectivity should be at least 24 for 3d models');
     
    224224
    225225        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    226         if strcmpi(md.type,'2d'),
     226        if (md.dim==2),
    227227                if isempty(find(~md.spcvelocity(:,1:2))),
    228228                        error(['model not consistent: model ' md.name ' is totally constrained, no need to solve!']);
     
    264264
    265265        %CHECK THAT WE ARE NOT FULLY CONSTRAINED
    266         if strcmpi(md.type,'2d'),
     266        if (md.dim==2),
    267267                if isempty(find(~md.spcthickness(:,1))),
    268268                        error(['model not consistent: model ' md.name ' is totally constrained for prognostic, no need to solve!']);
     
    291291
    292292        %dim:
    293         if strcmpi(md.type,'2d'),
     293        if (md.dim==2),
    294294                error(['model not consistent: for a steadystate computation, model needs to be 3d']);
    295295        end
     
    300300
    301301        %EXTRUSION
    302         if strcmp(md.type,'2d'),
     302        if (md.dim==2),
    303303                error(['model not consistent: for a ' md.analysis_type ' computation, the model must be 3d, extrude it first!'])
    304304        end
    305305
    306306        %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!']);
    311309        end
    312310
  • issm/trunk/src/m/classes/public/isresultconsistent.m

    r3923 r3994  
    2828if analysis_type==DiagnosticAnalysisEnum() & md.control_analysis==0,
    2929
    30         if strcmpi(md.type,'3d')
     30        if (md.dim==3)
    3131                fields1={'results.DiagnosticAnalysis.vx','results.DiagnosticAnalysis.vy','results.DiagnosticAnalysis.vz','results.DiagnosticAnalysis.vel'};
    3232                fields2={'results.DiagnosticAnalysis.vel'};
     
    158158        for iter=1:length(md.results.TransientAnalysis)
    159159
    160                 if strcmpi(md.type,'3d'),
     160                if (md.dim==3),
    161161                        fields1={['results.TransientAnalysis(' num2str(iter) ').vx'],['results.TransientAnalysis(' num2str(iter) ').vy'],...
    162162                                ['results.TransientAnalysis(' num2str(iter) ').vz'],['results.TransientAnalysis(' num2str(iter) ').vel'],...
     
    195195
    196196                %check melting (<=0 via penalties)
    197                 if strcmpi(md.type,'3d'),
     197                if (md.dim==3),
    198198                        if any(abs(md.results.TransientAnalysis(iter).melting(md.numberofgrids2d+1:end))>tolerance)
    199199                                disp(['''thermal'' result not consistent: increase penalty_melting (negative melting)']);
  • issm/trunk/src/m/classes/public/marshall.m

    r3811 r3994  
    2424WriteData(fid,md.analysis_type','Integer','analysis_type');
    2525WriteData(fid,md.sub_analysis_type','Integer','sub_analysis_type');
    26 WriteData(fid,md.type,'String','type');
     26WriteData(fid,md.dim,'Integer','dim');
    2727WriteData(fid,md.numberofgrids,'Integer','numberofgrids');
    2828WriteData(fid,md.numberofelements,'Integer','numberofelements');
     
    3535WriteData(fid,md.gridonmacayeal,'Mat','gridonmacayeal');
    3636
    37 if strcmpi(md.type,'3d'),
     37if md.dim==3,
    3838        WriteData(fid,md.numberofelements2d,'Integer','numberofelements2d');
    3939        WriteData(fid,md.numberofgrids2d,'Integer','numberofgrids2d');
  • issm/trunk/src/m/classes/public/mechanicalproperties.m

    r1862 r3994  
    1717        error(['the input velocity should be of size ' num2str(md.numberofgrids) '!'])
    1818end
    19 if ~strcmpi(md.type,'2d')
     19if ~(md.dim==2)
    2020        error('only 2d model supported yet');
    2121end
  • issm/trunk/src/m/classes/public/mesh/mesh.m

    r2728 r3994  
    9191
    9292%type of model
    93 md.type='2d';
     93md.dim=2;
    9494       
    9595%augment counter  keeping track of what has been done to this model
  • issm/trunk/src/m/classes/public/mesh/meshadaptation.m

    r1862 r3994  
    1414
    1515%some checks
    16 if ~strcmpi(md.type,'2d')
     16if ~(md.dim==2)
    1717        error('meshadaptation error message: adaptation for 3d meshes not implemented yet')
    1818end
  • issm/trunk/src/m/classes/public/mesh/meshconvert.m

    r3378 r3994  
    3636
    3737%Fill in rest of fields:
    38 md.type='2d';
     38md.dim=2;
    3939md.numberofelements=size(md.elements,1);
    4040md.numberofgrids=length(md.x);
  • issm/trunk/src/m/classes/public/mesh/meshnodensity.m

    r2737 r3994  
    7777
    7878%type of model
    79 md.type='2d';
     79md.dim=2;
    8080       
    8181%augment counter  keeping track of what has been done to this model
  • issm/trunk/src/m/classes/public/mesh/meshrefine.m

    r1221 r3994  
    3434
    3535%type of model
    36 md.type='2d';
     36md.dim=2;
    3737       
    3838%augment counter  keeping track of what has been done to this model
  • issm/trunk/src/m/classes/public/mesh/reorder.m

    r1250 r3994  
    99        error('reorder error message: no existing mesh, exiting...')
    1010end
    11 if strcmpi(md.type,'3d'),
     11if md.dim==3,
    1212        error('reorder error message: 3d models not supported yet, exiting...')
    1313end
  • issm/trunk/src/m/classes/public/mesh/rifts/meshaddrifts.m

    r2738 r3994  
    9191
    9292%type of model
    93 md.type='2d';
     93md.dim=2;
    9494       
    9595%augment counter  keeping track of what has been done to this model
  • issm/trunk/src/m/classes/public/modelsextract.m

    r2951 r3994  
    2121
    2222%2D or 3D?
    23 if strcmpi(md.type,'3d'),
     23if md.dim==3,
    2424        numberofelements=md.numberofelements2d; %this will be forgotten when we get out.
    2525        flags=project2d(md,flags,1);
     
    7373for i=1:size(flag_list,1),
    7474        disp(['   ' num2str(i) '/' num2str(size(flag_list,1))]);
    75         if strcmpi(md.type,'3d'),
     75        if md.dim==3,
    7676                flags2d=flag_list{i};
    7777                realflags=project3d(md,flags2d,'element');
  • issm/trunk/src/m/classes/public/plot/applyoptions.m

    r3547 r3994  
    4343
    4444%view
    45 if strcmpi(md.type,'3d') & ~exist(options,'layer'),
     45if md.dim==3 & ~exist(options,'layer'),
    4646        view(getfieldvalue(options,'view',3));
    4747else
     
    6161        eval(['axis ' getfieldvalue(options,'axis')]);
    6262else
    63         if (strcmpi(md.type,'2d') | exist(options,'layer')),
     63        if ((md.dim==2) | exist(options,'layer')),
    6464                axis tight equal;
    6565        else
  • issm/trunk/src/m/classes/public/plot/plot_basaldrag.m

    r3762 r3994  
    99
    1010%check layer
    11 if strcmpi(md.type,'3d')
     11if md.dim==3,
    1212        if getfieldvalue(options,'layer',1)~=1;
    1313                disp('plot_basaldrag warning: basal drag is displayed in the lower layer')
  • issm/trunk/src/m/classes/public/plot/plot_penalties.m

    r2439 r3994  
    2121end
    2222
    23 if ~strcmpi(md.type,'3d'),
     23if ~md.dim==3,
    2424        error('no penalties to plot for ''2d'' model');
    2525elseif isempty(md.penalties),
  • issm/trunk/src/m/classes/public/plot/plot_pressureload.m

    r3235 r3994  
    1414pressureload=md.pressureload;
    1515
    16 if strcmpi(md.type,'2d'),
     16if (md.dim==2),
    1717
    1818        %plot mesh
  • issm/trunk/src/m/classes/public/plot/plot_section.m

    r2704 r3994  
    2626%replug x and y onto model so that SectionValue treats the problem correctly
    2727if 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;
    2929end
    3030
     
    165165%apply options
    166166options=addfielddefault(options,'title','Section value');
    167 if strcmpi(md.type,'2d')
     167if (md.dim==2)
    168168        options=addfielddefault(options,'colorbar',0);
    169169end
    170 if (strcmpi(md.type,'2d') | getfieldvalue(options,'view')==2 )
     170if ((md.dim==2) | getfieldvalue(options,'view')==2 )
    171171        options=addfielddefault(options,'xlabel','Curvilinear coordinate');
    172172        options=addfielddefault(options,'axis','auto');
    173173end
    174 if (strcmpi(md.type,'3d') & getfieldvalue(options,'view')==2 )
     174if (md.dim==3 & getfieldvalue(options,'view')==2 )
    175175        options=addfielddefault(options,'ylabel','z');
    176176end
  • issm/trunk/src/m/classes/public/plot/plot_segments.m

    r3114 r3994  
    1414segments=md.segments;
    1515
    16 if strcmpi(md.type,'2d'),
     16if (md.dim==2),
    1717        %plot mesh
    1818        A=elements(:,1); B=elements(:,2); C=elements(:,3);
  • issm/trunk/src/m/classes/public/plot/plot_tensor_components.m

    r2439 r3994  
    1010upperplots=fix((i-1)/width);
    1111if upperplots==0, leftplots=i-1; else leftplots=i-width*upperplots-1; end
    12 if strcmpi(md.type,'2d')%3 components -> 3 indexes
     12if (md.dim==2)%3 components -> 3 indexes
    1313        index1=4*width*upperplots+2*leftplots+1;
    1414        index2=index1+1;
    1515        index3=index1+width*2;
    16 elseif strcmpi(md.type,'3d')%6 components -> 6 indexes
     16elseif md.dim==3%6 components -> 6 indexes
    1717        index1=3*3*width*upperplots+3*leftplots+1;
    1818        index2=index1+1;
     
    2828[tensor.yy isongrid isquiver]=processdata(md,tensor.yy,options);
    2929[tensor.xy isongrid isquiver]=processdata(md,tensor.xy,options);
    30 if  strcmpi(md.type,'3d')
     30if  md.dim==3
    3131        [tensor.xz isongrid isquiver]=processdata(md,tensor.xz,options);
    3232        [tensor.yz isongrid isquiver]=processdata(md,tensor.yz,options);
     
    3434end
    3535
    36 if (strcmpi(md.type,'2d')),
     36if ((md.dim==2)),
    3737        subplot(2*width,2*width,index1),
    3838        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  
    1010upperplots=fix((i-1)/width);
    1111if upperplots==0, leftplots=i-1; else leftplots=i-width*upperplots-1; end
    12 if strcmpi(md.type,'2d')%3 components -> 3 indexes
     12if (md.dim==2)%3 components -> 3 indexes
    1313        index1=4*width*upperplots+2*leftplots+1;
    1414        index2=index1+1;
     
    1616        index4=index3+1;
    1717        newwidth=2*width;
    18 elseif strcmpi(md.type,'3d')%6 components -> 6 indexes
     18elseif md.dim==3%6 components -> 6 indexes
    1919        index1=3*3*width*upperplots+3*leftplots+1;
    2020        index2=index1+1;
     
    3131type2=[type 'axis2'];
    3232plot_tensor_principalaxis(md,options,newwidth,index2,tensor,type2,plot_options);
    33 if  strcmpi(md.type,'3d')
     33if  md.dim==3
    3434        type3=[type 'axis3'];
    3535        plot_tensor_principalaxis(md,options,newwidth,index3,tensor,type3,plot_options);
     
    4040[tensor.principalvalue1 isongrid isquiver]=processdata(md,tensor.principalvalue1,options);
    4141[tensor.principalvalue2 isongrid isquiver]=processdata(md,tensor.principalvalue2,options);
    42 if  strcmpi(md.type,'3d')
     42if  md.dim==3
    4343        [tensor.principalvalue3 isongrid isquiver]=processdata(md,tensor.principalvalue3,options);
    4444end
    4545
    46 if (strcmpi(md.type,'2d')),
     46if ((md.dim==2)),
    4747        subplot(2*width,2*width,index3)
    4848        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  
    1313[x y z elements is2d]=processmesh(md,options);
    1414
    15 if (strcmpi(md.type,'2d')),
     15if ((md.dim==2)),
    1616        eval(['Vx=tensor.principalaxis' type(end) '(:,1); Vy=tensor.principalaxis' type(end) '(:,2);'])
    1717        eval(['value=tensor.principalvalue' type(end) ';']);
     
    3333
    3434%plot quivers
    35 if strcmpi(md.type,'2d'),
     35if (md.dim==2),
    3636
    3737        %density
  • issm/trunk/src/m/classes/public/plot/plot_transient_results.m

    r2450 r3994  
    4141clear string;
    4242
    43 if strcmpi(md.type,'3d'),
     43if md.dim==3,
    4444        string='plotmodel(md';
    4545        for i=1:length(md.results.transient),
     
    6767clear string;
    6868
    69 if strcmpi(md.type,'3d'),
     69if md.dim==3,
    7070        string='plotmodel(md';
    7171        for i=2:length(md.results.transient),
  • issm/trunk/src/m/classes/public/plot/processdata.m

    r2700 r3994  
    2525
    2626%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))
     27if datasize(1)~=md.numberofgrids & datasize(1)~=md.numberofelements & datasize(1)~=md.numberofgrids*6 & (md.dim==3 & ~(datasize(1)==md.numberofelements2d | datasize(1)==md.numberofgrids2d))
    2828        error('plotmodel error message: data not supported yet');
    2929end
     
    3434
    3535        %check number of columns, add zeros if necessary,
    36         if (strcmpi(md.type,'3d'))
     36        if (md.dim==3)
    3737                if datasize(2)==2,
    3838                        data=[data, zeros(datasize(1),1)];
     
    4040                        error('plotmodel error message: data provided should have 2 or 3 columns for quiver plot, and 1 for regular plot');
    4141                end
    42         elseif (strcmpi(md.type,'2d') & datasize(2)~=2),
     42        elseif ((md.dim==2) & datasize(2)~=2),
    4343                error('plotmodel error message: data provided should have 2 columns for quiver plot, and 1 for regular plot');
    4444        end
     
    5959
    6060%treat the case datasize(1)=grids2d
    61 if (strcmpi(md.type,'3d') & datasize(1)==md.numberofgrids2d),
     61if (md.dim==3 & datasize(1)==md.numberofgrids2d),
    6262        data=project3d(md,data,'node');
    6363        datasize(1)=md.numberofgrids;
     
    6666
    6767%treat the case datasize(1)=grids2d
    68 if (strcmpi(md.type,'3d') & datasize(1)==md.numberofelements2d),
     68if (md.dim==3 & datasize(1)==md.numberofelements2d),
    6969        data=project3d(md,data,'element');
    7070        datasize(1)=md.numberofelements;
  • issm/trunk/src/m/classes/public/plot/processmesh.m

    r2439 r3994  
    2424
    2525%is it a 2d plot?
    26 if strcmpi(md.type,'2d');
     26if (md.dim==2);
    2727        is2d=1;
    2828else
  • issm/trunk/src/m/classes/public/setelementstype.m

    r2959 r3994  
    5151
    5252%Check that no pattyn or stokes for 2d mesh
    53 if strcmpi(md.type,'2d'),
     53if (md.dim==2),
    5454        if any(stokesflag | pattynflag)
    5555                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  
    66
    77%load some variables (it is much faster if the variab;es are loaded from md once for all)
    8 if strcmpi(md.type,'2d'),
     8if (md.dim==2),
    99        numberofelements=md.numberofelements;
    1010        numberofgrids=md.numberofgrids;
     
    2626s=sqrt(sx.^2+sy.^2);
    2727
    28 if strcmpi(md.type,'3d'),
     28if md.dim==3,
    2929        sx=project3d(md,sx,'element');
    3030        sy=project3d(md,sy,'element');
  • issm/trunk/src/m/solutions/jpl/transient.m

    r738 r3994  
    88t1=clock;
    99
    10 if strcmpi(md.type,'2d'),
     10if (md.dim==2),
    1111        md=transient2d(md);
    1212else
  • issm/trunk/src/m/utils/BC/SetIceSheetBC.m

    r3756 r3994  
    2121
    2222%segment on neumann (Ice Front) -> none
    23 if strcmpi(md.type,'2d')
     23if (md.dim==2)
    2424        md.pressureload=zeros(0,4);
    2525else
  • issm/trunk/src/m/utils/BC/SetIceShelfBC.m

    r3756 r3994  
    3535%segment on Neumann (Ice Front)
    3636pos=find(gridonicefront(md.segments(:,1)) | gridonicefront(md.segments(:,2)));
    37 if strcmpi(md.type,'2d')
     37if (md.dim==2)
    3838        pressureload=md.segments(pos,:);
    39 elseif strcmpi(md.type,'3d')
     39elseif md.dim==3
    4040        pressureload_layer1=[md.segments(pos,1:2)  md.segments(pos,2)+md.numberofgrids2d  md.segments(pos,1)+md.numberofgrids2d  md.segments(pos,3)];
    4141        pressureload=[];
  • issm/trunk/src/m/utils/BC/SetMarineIceSheetBC.m

    r3756 r3994  
    4646%segment on Neumann (Ice Front)
    4747pos=find(gridonicefront(md.segments(:,1)) | gridonicefront(md.segments(:,2)));
    48 if strcmpi(md.type,'2d')
     48if (md.dim==2)
    4949        pressureload=md.segments(pos,:);
    50 elseif strcmpi(md.type,'3d')
     50elseif md.dim==3
    5151        pressureload_layer1=[md.segments(pos,1:2)  md.segments(pos,2)+md.numberofgrids2d  md.segments(pos,1)+md.numberofgrids2d  md.segments(pos,3)];
    5252        pressureload=[];
  • issm/trunk/src/m/utils/Mesh/argusmesh.m

    r2664 r3994  
    8888md.elementonsurface=ones(md.numberofelements,1);
    8989md.counter=1;
    90 md.type='2d';
     90md.dim=2;
    9191md.riftoutline='';
    9292md.domainoutline=['' infile ''];
  • issm/trunk/src/m/utils/Mesh/squaremesh.m

    r2777 r3994  
    7373
    7474%plug other field
    75 md.type='2d';
     75md.dim=2;
    7676md.counter=1;
    7777md.riftoutline='';
  • issm/trunk/src/m/utils/Nightly/testsgetfields.m

    r3923 r3994  
    2727                fields={'dakota.importancefactors'};
    2828        else
    29                 if strcmpi(md.type,'3d')
     29                if md.dim==3
    3030                        fields={'DiagnosticAnalysis.vy','DiagnosticAnalysis.vz'};
    3131                else
     
    4444
    4545elseif (analysis_type==TransientAnalysisEnum),
    46         if strcmpi(md.type,'3d')
     46        if md.dim==3
    4747                fields={'TransientAnalysis(end).vel','TransientAnalysis(end).pressure','TransientAnalysis(end).temperature','TransientAnalysis(end).melting','TransientAnalysis(end).thickness','TransientAnalysis(end).surface','TransientAnalysis(end).bed'};
    4848        else
  • issm/trunk/src/m/utils/Nightly/testsgettolerance.m

    r3923 r3994  
    3535
    3636        elseif (analysis_type==TransientAnalysisEnum),
    37                 if strcmpi(md.type,'2d'),
     37                if (md.dim==2),
    3838                        tolerance=10^-11;
    3939                else
Note: See TracChangeset for help on using the changeset viewer.