Changeset 5780
- Timestamp:
- 09/13/10 15:21:12 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Tria.cpp
r5772 r5780 753 753 /*Just branch to the correct load generator, according to the type of analysis we are carrying out: */ 754 754 if (analysis_type==DiagnosticHorizAnalysisEnum){ 755 CreatePVectorDiagnosticMacAyeal( pg );755 CreatePVectorDiagnosticMacAyeal( pg,pf); 756 756 } 757 757 else if (analysis_type==AdjointHorizAnalysisEnum){ … … 4196 4196 /*}}}*/ 4197 4197 /*FUNCTION Tria::CreatePVectorDiagnosticMacAyeal {{{1*/ 4198 void Tria::CreatePVectorDiagnosticMacAyeal( Vec pg ){4198 void Tria::CreatePVectorDiagnosticMacAyeal( Vec pg, Vec pf){ 4199 4199 4200 4200 int i,j,ig; … … 4203 4203 const int numdof=NDOF2*NUMVERTICES; 4204 4204 double xyz_list[NUMVERTICES][3]; 4205 int* doflist=NULL;4206 4205 4207 4206 /* parameters: */ … … 4218 4217 int drag_type; 4219 4218 4219 /*intermediary: */ 4220 ElementVector* pe=NULL; 4221 4220 4222 /*retrieve inputs :*/ 4221 4223 inputs->GetParameterValue(&drag_type,DragTypeEnum); … … 4229 4231 /* Get node coordinates and dof list: */ 4230 4232 GetVerticesCoordinates(&xyz_list[0][0], nodes, NUMVERTICES); 4231 GetDofList(&doflist,MacAyealApproximationEnum,GsetEnum);4232 4233 4233 4234 /* Start looping on the number of gaussian points: */ … … 4276 4277 } 4277 4278 4278 /*Add pe_g to global vector pg: */ 4279 VecSetValues(pg,numdof,doflist,(const double*)pe_g,ADD_VALUES); 4279 /*Initialize element vector: */ 4280 pe=this->NewElementVector(MacAyealApproximationEnum); 4281 4282 /*Add pe_g values to pe element stifness load: */ 4283 pe->AddValues(&pe_g[0]); 4284 4285 /*Add pe element load vector to global load vector: */ 4286 pe->AddToGlobal(pg,pf); 4287 4288 /*Free ressources:*/ 4289 delete pe; 4280 4290 4281 4291 /*Free ressources:*/ 4282 4292 delete gauss; 4283 xfree((void**)&doflist); 4293 4294 4284 4295 } 4285 4296 /*}}}*/ -
issm/trunk/src/c/objects/Elements/Tria.h
r5772 r5780 141 141 void CreatePVectorBalancedvelocities(Vec pg); 142 142 void CreatePVectorDiagnosticBaseVert(Vec pg); 143 void CreatePVectorDiagnosticMacAyeal(Vec pg );143 void CreatePVectorDiagnosticMacAyeal(Vec pg,Vec pf); 144 144 void CreatePVectorAdjointHoriz(Vec pg); 145 145 void CreatePVectorAdjointStokes(Vec pg);
Note:
See TracChangeset
for help on using the changeset viewer.