Changeset 1299


Ignore:
Timestamp:
07/13/09 09:05:39 (16 years ago)
Author:
Mathieu Morlighem
Message:

final fix

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

Legend:

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

    r1 r1299  
    8080
    8181                        %Build Pressure
    82                         if elementonstokes_param(pentaelem.id)==stokesenum();
     82                        if elementonstokes_param(pentaelem.id)==StokesEnum();
    8383                                pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord);
    8484                        else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z)
  • issm/trunk/src/m/classes/@pentaelem/StressBed.m

    r1 r1299  
    8484
    8585        %Build Pressure
    86         if elementonstokes_param(pentaelem.id)==stokesenum(),
     86        if elementonstokes_param(pentaelem.id)==StokesEnum(),
    8787                pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord);
    8888        else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z)
  • issm/trunk/src/m/classes/@pentaelem/StressSurface.m

    r1 r1299  
    8484
    8585        %Build Pressure
    86         if elementonstokes_param(pentaelem.id)==stokesenum(),
     86        if elementonstokes_param(pentaelem.id)==StokesEnum(),
    8787                pressure_g=GetParameterValue(pentaelem,pressure,gauss_coord);
    8888        else %use pattyn's and MacAyeal's assumption: P=sigma_zz'+rho_ice*g*(s-z)
  • issm/trunk/src/m/solutions/cielo/SpawnCore.m

    r963 r1299  
    4545
    4646%now run the core solution
    47 if analysis_type==diagnosticenum(),
     47if analysis_type==DiagnosticAnalysisEnum(),
    4848
    4949        results=diagnostic_core(models,inputs);
  • issm/trunk/src/m/solutions/cielo/thermal_core.m

    r979 r1299  
    99m_m=models.m;
    1010
    11 if m_t.parameters.sub_analysis_type==steadyenum,
     11if m_t.parameters.sub_analysis_type==SteadyAnalysisEnum(),
    1212
    1313        results.time=0;
  • issm/trunk/src/m/solutions/ice/ModelProcessorDiagnosticHoriz.m

    r1024 r1299  
    2424%Allocate grids and elements
    2525if strcmpi(md.type,'2d'),
    26         numberofelements_horiz=length(find(md.elements_type(:,1)==macayealenum()));
    27 else
    28         numberofelements_horiz=length(find(md.elements_type(:,1)==macayealenum() | md.elements_type(:,1)==pattynenum()));
     26        numberofelements_horiz=length(find(md.elements_type(:,1)==MacAyealEnum()));
     27else
     28        numberofelements_horiz=length(find(md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum()));
    2929end
    3030elements=struct('element',cell(numberofelements_horiz,1));
     
    3434%Deal with 2d elements
    3535if strcmpi(md.type,'2d'),
    36         el3pos=find((md.elements_type(:,1)==macayealenum()) & (element_partitioning==labindex));
     36        el3pos=find((md.elements_type(:,1)==MacAyealEnum()) & (element_partitioning==labindex));
    3737        if ~isempty(el3pos),
    3838                pos=[1:length(el3pos)]';
     
    6666        %3d elements
    6767        %First create penta elements (ie non hutter)
    68         el6pos=find((md.elements_type(:,1)==macayealenum() | md.elements_type(:,1)==pattynenum()) & (element_partitioning==labindex));
     68        el6pos=find((md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum()) & (element_partitioning==labindex));
    6969
    7070        if ~isempty(el6pos),
     
    9999                %For penta elements where we want to implement MacAyeal's element, we need to collapse
    100100                %the formulation into trias:
    101                 pos=find(ismember(el6pos,find(md.elements_type(:,1)==macayealenum())));
     101                pos=find(ismember(el6pos,find(md.elements_type(:,1)==MacAyealEnum())));
    102102                elements(pos)=SetStructureField(elements(pos),'element','collapse',ones(length(pos),1));
    103103
     
    167167if strcmpi(md.type,'3d'),
    168168        for n=1:length(elements),
    169                 if md.elements_type(el6pos(n),1)==macayealenum(),
     169                if md.elements_type(el6pos(n),1)==MacAyealEnum(),
    170170                        %all dofs associated to this element are frozen, except if the element is on the bed, and acts as a 'fake' pentaelem,
    171171                        %and a true 'macayeal' tria element.
     
    195195
    196196        if strcmpi(md.type,'3d'),
    197                 if md.elements_type(md.segmentonneumann_diag(i,end))==macayealenum(),
     197                if md.elements_type(md.segmentonneumann_diag(i,end))==MacAyealEnum(),
    198198                        loads(i).load=icefront;
    199199                        loads(i).load.eid=find(el6pos==md.segmentonneumann_diag(i,end));
     
    203203                        loads(i).load.type='segment';
    204204
    205                 elseif md.elements_type(md.segmentonneumann_diag(i,end))==pattynenum(),
     205                elseif md.elements_type(md.segmentonneumann_diag(i,end))==PattynEnum(),
    206206                        %build a quad ice front for the penta element
    207207                        loads(i).load=icefront;
     
    214214
    215215                else
    216                         if ~(md.elements_type(md.segmentonneumann_diag(i,end))==hutterenum()),
     216                        if ~(md.elements_type(md.segmentonneumann_diag(i,end))==HutterEnum()),
    217217                                error('diagnostic error message: unsupported  element type');
    218218                        end
    219219                end
    220220        else
    221                 if md.elements_type(md.segmentonneumann_diag(i,end))==macayealenum(),
     221                if md.elements_type(md.segmentonneumann_diag(i,end))==MacAyealEnum(),
    222222                        loads(i).load=icefront;
    223223                        loads(i).load.eid=find(el3pos==md.segmentonneumann_diag(i,end));
     
    228228
    229229                else
    230                         if ~(md.elements_type(md.segmentonneumann_diag(i,end))==hutterenum()),
     230                        if ~(md.elements_type(md.segmentonneumann_diag(i,end))==HutterEnum()),
    231231                                error('diagnostic error message: unsupported  element type');
    232232                        end
  • issm/trunk/src/m/solutions/ice/ModelProcessorDiagnosticStokes.m

    r1024 r1299  
    2323
    2424%Allocate grids and elements
    25 numberofstokeselements=size(find(md.elements_type(:,2)==stokesenum()),1);
     25numberofstokeselements=size(find(md.elements_type(:,2)==StokesEnum()),1);
    2626elements=struct('element',cell(numberofstokeselements,1));
    2727materials=struct('material',cell(numberofstokeselements+1,1));
     
    3030%3d elements
    3131%pos=find(element_partitioning==labindex);
    32 pos=find(md.elements_type(:,2)==stokesenum());
     32pos=find(md.elements_type(:,2)==StokesEnum());
    3333stokesnewnumber=[1:numberofstokeselements]';
    3434[elements(stokesnewnumber).element]=deal(pentaelem);
     
    116116%Build grids on the border of stokes
    117117%Get border grids
    118 stokes_elements=find(md.elements_type(:,2)==stokesenum()); %find the elements on the stokes domain
     118stokes_elements=find(md.elements_type(:,2)==StokesEnum()); %find the elements on the stokes domain
    119119borderflags=zeros(md.numberofgrids,1);
    120120borderflags(md.elements(stokes_elements,:))=1; %find all the grids of the elements on stokes domain, ie stokes grids and borderstokes
     
    146146        %build a quad ice front for the penta element
    147147        loads(i).load=icefront;
    148         loads(i).load.eid=find(segmentonneumann_diag_stokes(i,end)==find(md.elements_type(:,2)==stokesenum())); %elements contain only stokes elements, so we have to renumbered
     148        loads(i).load.eid=find(segmentonneumann_diag_stokes(i,end)==find(md.elements_type(:,2)==StokesEnum())); %elements contain only stokes elements, so we have to renumbered
    149149        loads(i).load.g(1)=segmentonneumann_diag_stokes(i,1);
    150150        loads(i).load.g(2)=segmentonneumann_diag_stokes(i,2);
  • issm/trunk/src/m/solutions/ice/ModelProcessorThermal.m

    r1040 r1299  
    5151%For penta elements where we want to implement MacAyeal's element, we need to collapse
    5252%the formulation into trias:
    53 el6pos=find((md.elements_type(:,1)==macayealenum() | md.elements_type(:,1)==pattynenum()) & (element_partitioning==labindex));
    54 pos2=find(ismember(el6pos,find(md.elements_type(:,1)==macayealenum())));
     53el6pos=find((md.elements_type(:,1)==MacAyealEnum() | md.elements_type(:,1)==PattynEnum()) & (element_partitioning==labindex));
     54pos2=find(ismember(el6pos,find(md.elements_type(:,1)==MacAyealEnum())));
    5555elements(pos2)=SetStructureField(elements(pos2),'element','collapse',ones(length(pos2),1));
    5656
Note: See TracChangeset for help on using the changeset viewer.