Ignore:
Timestamp:
09/10/10 09:26:58 (15 years ago)
Author:
Mathieu Morlighem
Message:

NumericalFlux does not use beams anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Gauss/GaussTria.cpp

    r5734 r5739  
    5656        weights=(double*)xmalloc(numgauss*sizeof(double));
    5757
    58         /*Reverse grid1 and 2 if necessary*/
     58        /*Reverse index1 and 2 if necessary*/
    5959        if (index1>index2){
    6060                index3=index1; index1=index2; index2=index3;
     
    150150        coord2=ONETHIRD;
    151151        coord3=ONETHIRD;
     152
     153}
     154/*}}}*/
     155/*FUNCTION GaussTria::GaussEdgeCenter{{{1*/
     156void GaussTria::GaussEdgeCenter(int index1,int index2){
     157
     158        int     index3;
     159
     160        /*Reverse index1 and 2 if necessary*/
     161        if (index1>index2){
     162                index3=index1; index1=index2; index2=index3;
     163        }
     164
     165        /*update static arrays*/
     166        if (index1==0 && index2==1){
     167                coord1=0.5;
     168                coord2=0.5;
     169                coord3=0.0;
     170        }
     171        else if (index1==0 && index2==2){
     172                coord1=0.5;
     173                coord2=0.0;
     174                coord3=0.5;
     175        }
     176        else if (index1==1 && index2==2){
     177                coord1=0.0;
     178                coord2=0.5;
     179                coord3=0.5;
     180        }
     181        else
     182         ISSMERROR("The 2 indices provided are not supported yet (user provided %i and %i)",index1,index2);
    152183
    153184}
Note: See TracChangeset for help on using the changeset viewer.