Changeset 322 for issm/trunk/src/c/objects/Beam.cpp
- Timestamp:
- 05/08/09 14:41:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Beam.cpp
r308 r322 362 362 GetJacobianDeterminant(&Jdet, &z_list[0],gauss_coord); 363 363 364 //Get nodal functions365 GetNodalFunctions(l1l2, gauss_coord);366 367 364 for(j=0;j<NDOF2;j++){ 368 365 pe_g_gaussian[NDOF2+j]=constant_part*pow((s[0]-z_g)/B,n)*slope[j]*Jdet*gauss_weight; 369 366 } 370 367 371 368 //add pe_gaussian vector to pe: 372 369 for(j=0;j<numdofs;j++){ … … 387 384 pe_g[1]+=vb; 388 385 } 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); 389 393 } 390 394
Note:
See TracChangeset
for help on using the changeset viewer.