Changeset 17267


Ignore:
Timestamp:
02/12/14 15:34:57 (11 years ago)
Author:
jbondzio
Message:

ADD: Penta::IsIcefront()

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r17261 r17267  
    31753175}
    31763176/*}}}*/
    3177 
     3177bool  Penta::IsIcefront(void){/*{{{*/
     3178
     3179        bool isicefront;
     3180        int i,nrice;
     3181   IssmDouble ls[NUMVERTICES];
     3182
     3183        /*Retrieve all inputs and parameters*/
     3184        GetInputListOnVertices(&ls[0],MaskIceLevelsetEnum);
     3185
     3186        /* If only one vertex has ice, there is an ice front here */
     3187        isicefront=false;
     3188        if(IsIceInElement()){
     3189                nrice=0;       
     3190                for(i=0;i<NUMVERTICES2D;i++)
     3191                        if(ls[i]<0.) nrice++;
     3192                if(nrice==1) isicefront= true;
     3193        }
     3194        return isicefront;
     3195}/*}}}*/
    31783196/*FUNCTION Penta::AverageOntoPartition {{{*/
    31793197void  Penta::AverageOntoPartition(Vector<IssmDouble>* partition_contributions,Vector<IssmDouble>* partition_areas,IssmDouble* vertex_response,IssmDouble* qmu_part){
  • issm/trunk-jpl/src/c/classes/Elements/Penta.h

    r17257 r17267  
    114114                int    PressureInterpolation();
    115115                bool   IsZeroLevelset(int levelset_enum);
    116                 bool   IsIcefront(void){_error_("not implemented yet");};
     116                bool   IsIcefront(void);
    117117                void   ZeroLevelsetCoordinates(IssmDouble** pxyz_zero,IssmDouble* xyz_list,int levelsetenum);
    118118                void   GetIcefrontCoordinates(IssmDouble** pxyz_front,IssmDouble* xyz_list,int levelsetenum){_error_("not implemented yet");};
Note: See TracChangeset for help on using the changeset viewer.