Changeset 17750


Ignore:
Timestamp:
04/16/14 10:31:31 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing indices of tetra base that need to be direct

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

Legend:

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

    r17729 r17750  
    107107
    108108        IssmDouble values[NUMVERTICES];
    109         //int        indices[4][3] = {{0,1,2},{0,1,3},{1,2,3},{2,0,3}};
    110         int        indices[4][3] = {{0,1,2},{3,1,0},{3,2,1},{3,0,2}};
     109        int        indices[4][3] = {{0,1,2},{0,3,1},{1,3,2},{0,2,3}};
    111110
    112111        /*Retrieve all inputs and parameters*/
  • issm/trunk-jpl/src/c/classes/gauss/GaussTetra.cpp

    r17490 r17750  
    5353                for(int i=0;i<numgauss;i++) coords4[i]=0.;
    5454        }
    55         else if(index1==0 && index2==1 && index3==3){
     55        else if(index1==0 && index2==3 && index3==1){
    5656                GaussLegendreTria(&numgauss,&coords1,&coords2,&coords4,&weights,order);
    5757                coords3=xNew<IssmDouble>(numgauss);
    5858                for(int i=0;i<numgauss;i++) coords3[i]=0.;
    5959        }
    60         else if(index1==1 && index2==2 && index3==3){
     60        else if(index1==1 && index2==3 && index3==2){
    6161                GaussLegendreTria(&numgauss,&coords2,&coords3,&coords4,&weights,order);
    6262                coords1=xNew<IssmDouble>(numgauss);
    6363                for(int i=0;i<numgauss;i++) coords1[i]=0.;
    6464        }
    65         else if(index1==2 && index2==0 && index3==3){
     65        else if(index1==0 && index2==2 && index3==3){
    6666                GaussLegendreTria(&numgauss,&coords1,&coords3,&coords4,&weights,order);
    6767                coords2=xNew<IssmDouble>(numgauss);
Note: See TracChangeset for help on using the changeset viewer.