Changeset 15523
- Timestamp:
- 07/19/13 10:28:14 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r15522 r15523 1002 1002 } 1003 1003 else if(levelset[0]==0 && levelset[2]==0){ //front is on point 0 and 1 1004 xyz_zero[3*0+0]=xyz_list[ 0][0];1005 xyz_zero[3*0+1]=xyz_list[ 0][1];1006 xyz_zero[3*0+2]=xyz_list[ 0][2];1004 xyz_zero[3*0+0]=xyz_list[2][0]; 1005 xyz_zero[3*0+1]=xyz_list[2][1]; 1006 xyz_zero[3*0+2]=xyz_list[2][2]; 1007 1007 1008 1008 /*New point 2*/ 1009 xyz_zero[3*1+0]=xyz_list[ 2][0];1010 xyz_zero[3*1+1]=xyz_list[ 2][1];1011 xyz_zero[3*1+2]=xyz_list[ 2][2];1009 xyz_zero[3*1+0]=xyz_list[0][0]; 1010 xyz_zero[3*1+1]=xyz_list[0][1]; 1011 xyz_zero[3*1+2]=xyz_list[0][2]; 1012 1012 } 1013 1013 else if(levelset[1]==0 && levelset[2]==0){ //front is on point 0 and 1 … … 3165 3165 } 3166 3166 3167 return NULL;3168 3167 /*If no front, return NULL*/ 3169 3168 if(!isfront) return NULL; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateLoadsDiagnosticHoriz.cpp
r15504 r15523 64 64 if(!iomodel->my_elements[element]) continue; 65 65 66 /*Do not create ice front if Hutter or Stokeselements*/66 /*Do not create ice front if Hutter or MacAyeal elements*/ 67 67 if (reCast<int,IssmDouble>(*(elements_type+element))==HutterApproximationEnum) continue; 68 if (reCast<int,IssmDouble>(*(elements_type+element))==MacAyealApproximationEnum) continue; 68 69 69 70 /*Create and add load: */ 70 if (reCast<int,IssmDouble>(*(elements_type+element))==(MacAyealApproximationEnum) && iomodel->dim==2){ 71 loads->AddObject(new Icefront(iomodel->loadcounter+count+1,i,iomodel,MacAyeal2dIceFrontEnum,DiagnosticHorizAnalysisEnum)); 72 count++; 73 } 74 else if (reCast<int,IssmDouble>(*(elements_type+element))==(MacAyealApproximationEnum) && iomodel->dim==3){ 75 loads->AddObject(new Icefront(iomodel->loadcounter+count+1,i,iomodel,MacAyeal3dIceFrontEnum,DiagnosticHorizAnalysisEnum)); 76 count++; 77 } 78 else if (reCast<int,IssmDouble>(*(elements_type+element))==(L1L2ApproximationEnum)){ 71 if (reCast<int,IssmDouble>(*(elements_type+element))==(L1L2ApproximationEnum)){ 79 72 loads->AddObject(new Icefront(iomodel->loadcounter+count+1,i,iomodel,MacAyeal3dIceFrontEnum,DiagnosticHorizAnalysisEnum)); 80 73 count++; -
issm/trunk-jpl/src/c/modules/ModelProcessorx/DiagnosticHoriz/UpdateElementsDiagnosticHoriz.cpp
r15504 r15523 56 56 iomodel->FetchDataToInput(elements,MaskElementonfloatingiceEnum); 57 57 iomodel->FetchDataToInput(elements,MaskElementonwaterEnum); 58 iomodel->FetchDataToInput(elements,IcelevelsetEnum); 58 59 iomodel->FetchDataToInput(elements,MaterialsRheologyBEnum); 59 60 iomodel->FetchDataToInput(elements,MaterialsRheologyNEnum);
Note:
See TracChangeset
for help on using the changeset viewer.