Ignore:
Timestamp:
07/26/10 07:48:41 (15 years ago)
Author:
Mathieu Morlighem
Message:

new vel must be computed after Stokes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r4780 r4797  
    23752375        double       vy[numvertices];
    23762376        double       vz[numvertices];
     2377        double       vel[numvertices];
    23772378        double       pressure[numvertices];
    23782379        int          dummy;
     
    23872388        }
    23882389
    2389         /*Ok, we have vx and vy in values, fill in vx and vy arrays: */
     2390        /*Ok, we have vx and vy in values, fill in all arrays: */
    23902391        for(i=0;i<numvertices;i++){
    23912392                vx[i]=values[i*numdofpervertex+0];
     
    24002401                pressure[i]=pressure[i]*stokesreconditioning;
    24012402        }
     2403
     2404        /*Now Compute vel*/
     2405        for(i=0;i<numvertices;i++) vel[i]=pow( pow(vx[i],2.0) + pow(vy[i],2.0) + pow(vz[i],2.0) , 0.5);
    24022406       
    24032407        /*Now, we have to move the previous inputs  to old
     
    24122416        this->inputs->AddInput(new PentaVertexInput(VyEnum,vy));
    24132417        this->inputs->AddInput(new PentaVertexInput(VzEnum,vz));
     2418        this->inputs->AddInput(new PentaVertexInput(VelEnum,vel));
    24142419        this->inputs->AddInput(new PentaVertexInput(PressureEnum,pressure));
    24152420}
Note: See TracChangeset for help on using the changeset viewer.