Ignore:
Timestamp:
04/08/14 20:39:20 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: following Chris' suggestions, we adopt the following convention
md.mesh.dimension -> DomainDimensionEnum
md.mesh.domaintype ->DomainTypeEnum
md.mesh.elementtype->MeshElementtypeEnum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/SmoothedSurfaceSlopeYAnalysis.cpp

    r17674 r17686  
    66
    77/*Model processing*/
    8 int  SmoothedSurfaceSlopeYAnalysis::DofsPerNode(int** doflist,int meshxdim,int approximation){/*{{{*/
     8int  SmoothedSurfaceSlopeYAnalysis::DofsPerNode(int** doflist,int domaintype,int approximation){/*{{{*/
    99        return 1;
    1010}/*}}}*/
     
    2626        iomodel->FetchDataToInput(elements,BaseEnum);
    2727        iomodel->FetchDataToInput(elements,MaskIceLevelsetEnum);
    28         if(iomodel->meshxdim==Mesh3DEnum){
     28        if(iomodel->domaintype==Mesh3DEnum){
    2929                iomodel->FetchDataToInput(elements,MeshElementonbaseEnum);
    3030                iomodel->FetchDataToInput(elements,MeshElementonsurfaceEnum);
    3131        }
    32         if(iomodel->meshxdim==Mesh2DverticalEnum){
     32        if(iomodel->domaintype==Mesh2DverticalEnum){
    3333                iomodel->FetchDataToInput(elements,MeshVertexonbaseEnum);
    3434        }
    3535}/*}}}*/
    3636void SmoothedSurfaceSlopeYAnalysis::CreateNodes(Nodes* nodes,IoModel* iomodel){/*{{{*/
    37         if(iomodel->meshxdim==Mesh3DEnum) iomodel->FetchData(1,MeshVertexonbaseEnum);
     37        if(iomodel->domaintype==Mesh3DEnum) iomodel->FetchData(1,MeshVertexonbaseEnum);
    3838        ::CreateNodes(nodes,iomodel,SmoothedSurfaceSlopeYAnalysisEnum,P1Enum);
    39         if(iomodel->meshxdim==Mesh3DEnum) iomodel->DeleteData(1,MeshVertexonbaseEnum);
     39        if(iomodel->domaintype==Mesh3DEnum) iomodel->DeleteData(1,MeshVertexonbaseEnum);
    4040}/*}}}*/
    4141void SmoothedSurfaceSlopeYAnalysis::CreateConstraints(Constraints* constraints,IoModel* iomodel){/*{{{*/
     
    105105
    106106        /*Intermediaries*/
    107         int      meshxdim;
     107        int      domaintype;
    108108        Element* basalelement;
    109109
    110110        /*Get basal element*/
    111         element->FindParam(&meshxdim,MeshXDimEnum);
    112         switch(meshxdim){
     111        element->FindParam(&domaintype,DomainTypeEnum);
     112        switch(domaintype){
    113113                case Mesh2DhorizontalEnum:
    114114                        basalelement = element;
     
    118118                        basalelement = element->SpawnBasalElement();
    119119                        break;
    120                 default: _error_("mesh "<<EnumToStringx(meshxdim)<<" not supported yet");
     120                default: _error_("mesh "<<EnumToStringx(domaintype)<<" not supported yet");
    121121        }
    122122
     
    169169        xDelete<IssmDouble>(basis);
    170170        delete gauss;
    171         if(meshxdim!=Mesh2DhorizontalEnum){basalelement->DeleteMaterials(); delete basalelement;};
     171        if(domaintype!=Mesh2DhorizontalEnum){basalelement->DeleteMaterials(); delete basalelement;};
    172172        return pe;
    173173}/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.