Changeset 15446


Ignore:
Timestamp:
07/05/13 14:51:53 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed P2 basis functions

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

Legend:

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

    r15444 r15446  
    992992
    993993        /* Start looping on the number of vertices: */
    994         if (input){
     994        if(input){
    995995                GaussTria* gauss=new GaussTria();
    996                 for (int iv=0;iv<this->NumberofNodes();iv++){
     996                for(int iv=0;iv<this->NumberofNodes();iv++){
    997997                        gauss->GaussNode(numnodes,iv);
    998998                        input->GetInputValue(&pvalue[iv],gauss);
     
    10011001        }
    10021002        else{
    1003                 for (int iv=0;iv<numnodes;iv++) pvalue[iv]=defaultvalue;
     1003                for(int iv=0;iv<numnodes;iv++) pvalue[iv]=defaultvalue;
    10041004        }
    10051005}
  • issm/trunk-jpl/src/c/classes/Elements/TriaRef.cpp

    r15439 r15446  
    541541                        dbasis[NUMNODESP2*1+0]=-2.*SQRT3/3.*gauss->coord1 + SQRT3/6.;
    542542                        /*Nodal function 2*/
    543                         dbasis[NUMNODESP2*0+1]=+2.*gauss->coord2 + 0.5;
     543                        dbasis[NUMNODESP2*0+1]=+2.*gauss->coord2 - 0.5;
    544544                        dbasis[NUMNODESP2*1+1]=-2.*SQRT3/3.*gauss->coord2 + SQRT3/6.;
    545545                        /*Nodal function 3*/
Note: See TracChangeset for help on using the changeset viewer.