Changeset 20440
- Timestamp:
- 04/06/16 09:01:13 (9 years ago)
- 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 1935 1935 return this->matpar->PureIceEnthalpy(pressure); 1936 1936 }/*}}}*/ 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 }/*}}}*/1955 1937 void Element::ResultInterpolation(int* pinterpolation,int* pnodesperelement,int* parray_size, int output_enum){/*{{{*/ 1956 1938 -
issm/trunk-jpl/src/c/classes/Elements/Element.h
r20209 r20440 132 132 void PositiveDegreeDay(IssmDouble* pdds,IssmDouble* pds,IssmDouble signorm,bool ismungsm); 133 133 IssmDouble PureIceEnthalpy(IssmDouble pressure); 134 void ResetIceLevelset(void);135 134 void ResultInterpolation(int* pinterpolation,int*nodesperelement,int* parray_size, int output_enum); 136 135 void ResultToPatch(IssmDouble* values,int nodesperelement,int output_enum);
Note:
See TracChangeset
for help on using the changeset viewer.