source: issm/oecreview/Archive/15392-16133/ISSM-15898-15899.diff@ 16134

Last change on this file since 16134 was 16134, checked in by Mathieu Morlighem, 12 years ago

Added Archive/15392-16133

File size: 2.9 KB
  • ../trunk-jpl/src/c/classes/Elements/Tria.cpp

     
    64936493        int        stabilization;
    64946494        int        dim;
    64956495        IssmDouble Jdettria,D_scalar,dt,h;
    6496         IssmDouble vel,vx,vy,dvxdx,dvydy;
    6497         IssmDouble dvx[2],dvy[2];
     6496        IssmDouble vel,vx,vy;
    64986497        IssmDouble xyz_list[NUMVERTICES][3];
    64996498
    65006499        /*Fetch number of nodes for this finite element*/
     
    65266525
    65276526                vx_input->GetInputValue(&vx,gauss);
    65286527                vy_input->GetInputValue(&vy,gauss);
    6529                 vx_input->GetInputDerivativeValue(&dvx[0],&xyz_list[0][0],gauss);
    6530                 vy_input->GetInputDerivativeValue(&dvy[0],&xyz_list[0][0],gauss);
    65316528
    65326529                D_scalar=gauss->weight*Jdettria;
    65336530
     
    65396536                GetBMasstransport(B,&xyz_list[0][0],gauss);
    65406537                GetBprimeMasstransport(Bprime,&xyz_list[0][0],gauss);
    65416538
    6542                 dvxdx=dvx[0];
    6543                 dvydy=dvy[1];
    65446539                D_scalar=dt*gauss->weight*Jdettria;
    65456540
    65466541                D[0][0]=D_scalar*vx;
     
    65966591        int        stabilization;
    65976592        int        dim;
    65986593        IssmDouble Jdettria,D_scalar,dt,h;
    6599         IssmDouble vel,vx,vy,dvxdx,dvydy;
    6600         IssmDouble dvx[2],dvy[2];
     6594        IssmDouble vel,vx,vy;
    66016595        IssmDouble xyz_list[NUMVERTICES][3];
    66026596
    66036597        /*Fetch number of nodes for this finite element*/
     
    66296623
    66306624                vx_input->GetInputValue(&vx,gauss);
    66316625                vy_input->GetInputValue(&vy,gauss);
    6632                 vx_input->GetInputDerivativeValue(&dvx[0],&xyz_list[0][0],gauss);
    6633                 vy_input->GetInputDerivativeValue(&dvy[0],&xyz_list[0][0],gauss);
    66346626
    66356627                D_scalar=gauss->weight*Jdettria;
    66366628
     
    66426634                GetBMasstransport(B,&xyz_list[0][0],gauss);
    66436635                GetBprimeMasstransport(Bprime,&xyz_list[0][0],gauss);
    66446636
    6645                 dvxdx=dvx[0];
    6646                 dvydy=dvy[1];
    66476637                D_scalar=dt*gauss->weight*Jdettria;
    66486638
    66496639                D[0][0]=D_scalar*vx;
     
    68196809        this->parameters->FindParam(&dt,TimesteppingTimeStepEnum);
    68206810        Input* vz_input     = inputs->GetInput(VzEnum);                         _assert_(vz_input);
    68216811        Input* ms_input     = inputs->GetInput(SurfaceforcingsMassBalanceEnum); _assert_(ms_input);
    6822         Input* surface_input= inputs->GetInput(ThicknessEnum);              _assert_(surface_input);
     6812        Input* surface_input= inputs->GetInput(SurfaceEnum);                    _assert_(surface_input);
    68236813
    68246814        /*Initialize mb_correction to 0, do not forget!:*/
    68256815        /* Start  looping on the number of gaussian points: */
     
    68316821                GetJacobianDeterminant(&Jdettria, &xyz_list[0][0],gauss);
    68326822                GetNodalFunctions(basis,gauss);
    68336823
     6824                vz_input->GetInputValue(&vz,gauss);
    68346825                ms_input->GetInputValue(&ms,gauss);
    68356826                surface_input->GetInputValue(&surface,gauss);
    68366827
     
    68766867                GetJacobianDeterminant(&Jdettria, &xyz_list[0][0],gauss);
    68776868                GetNodalFunctions(basis,gauss);
    68786869
     6870                vz_input->GetInputValue(&vz,gauss);
    68796871                mb_input->GetInputValue(&mb,gauss);
    68806872                bed_input->GetInputValue(&bed,gauss);
    68816873                if(mb_correction_input)
Note: See TracBrowser for help on using the repository browser.