Changeset 322


Ignore:
Timestamp:
05/08/09 14:41:55 (16 years ago)
Author:
seroussi
Message:

fixed problems with Beam element

File:
1 edited

Legend:

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

    r308 r322  
    362362                GetJacobianDeterminant(&Jdet, &z_list[0],gauss_coord);
    363363               
    364                 //Get nodal functions
    365                 GetNodalFunctions(l1l2, gauss_coord);
    366 
    367364                for(j=0;j<NDOF2;j++){
    368365                        pe_g_gaussian[NDOF2+j]=constant_part*pow((s[0]-z_g)/B,n)*slope[j]*Jdet*gauss_weight;
    369366                }
    370 
     367               
    371368                //add pe_gaussian vector to pe:
    372369                for(j=0;j<numdofs;j++){
     
    387384                pe_g[1]+=vb;
    388385        }
     386
     387        /*Add pe_g to global vector pg: */
     388        VecSetValues(pg,numdofs,doflist,(const double*)pe_g,ADD_VALUES);
     389
     390        cleanup_and_return:
     391        xfree((void**)&segment_gauss_coord);
     392        xfree((void**)&gauss_weights);
    389393}
    390394
Note: See TracChangeset for help on using the changeset viewer.