Changeset 20440


Ignore:
Timestamp:
04/06/16 09:01:13 (9 years ago)
Author:
Mathieu Morlighem
Message:

DEL: removed all levelset reset +-1

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

Legend:

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

    r20343 r20440  
    19351935        return this->matpar->PureIceEnthalpy(pressure);
    19361936}/*}}}*/
    1937 void       Element::ResetIceLevelset(void){/*{{{*/
    1938 
    1939         /*Get Ice Levelset on vertices*/
    1940         int         numvertices = this->GetNumberOfVertices();
    1941         IssmDouble *values      = xNew<IssmDouble>(numvertices);
    1942         this->GetInputListOnVertices(values,MaskIceLevelsetEnum);
    1943 
    1944         /*Project on {-1,+1}*/
    1945         for(int i=0;i<numvertices;i++){
    1946                 if(values[i]>0) values[i]=+1.;
    1947                 else            values[i]=-1.;
    1948         }
    1949         this->AddInput(MaskIceLevelsetEnum,values,P1Enum);
    1950 
    1951         /*Cleanup and return*/
    1952         xDelete<IssmDouble>(values);
    1953 
    1954 }/*}}}*/
    19551937void       Element::ResultInterpolation(int* pinterpolation,int* pnodesperelement,int* parray_size, int output_enum){/*{{{*/
    19561938
  • issm/trunk-jpl/src/c/classes/Elements/Element.h

    r20209 r20440  
    132132                void               PositiveDegreeDay(IssmDouble* pdds,IssmDouble* pds,IssmDouble signorm,bool ismungsm);
    133133                IssmDouble         PureIceEnthalpy(IssmDouble pressure);
    134                 void               ResetIceLevelset(void);
    135134                void               ResultInterpolation(int* pinterpolation,int*nodesperelement,int* parray_size, int output_enum);
    136135                void               ResultToPatch(IssmDouble* values,int nodesperelement,int output_enum);
Note: See TracChangeset for help on using the changeset viewer.