Changeset 4405
- Timestamp:
- 07/06/10 09:30:38 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ComputeBasalStressx/ComputeBasalStressx.h
r4236 r4405 10 10 11 11 /* local prototypes: */ 12 void ComputeBasalStressx( Vec* pp_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters, 13 int analysis_type,int sub_analysis_type); 12 void ComputeBasalStressx( Vec* pp_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters); 14 13 15 14 #endif /* _COMPUTEBASALSTRESSX_H */ -
issm/trunk/src/c/modules/ComputePressurex/ComputePressurex.h
r4236 r4405 10 10 11 11 /* local prototypes: */ 12 void ComputePressurex( Vec* pp_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters, 13 int analysis_type,int sub_analysis_type); 12 void ComputePressurex( Vec* pp_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters); 14 13 15 14 #endif /* _COMPUTEPRESSUREX_H */ -
issm/trunk/src/c/modules/ComputeStrainRatex/ComputeStrainRatex.h
r4236 r4405 10 10 11 11 /* local prototypes: */ 12 void ComputeStrainRatex(Vec* eps_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters, 13 int analysis_type,int sub_analysis_type); 12 void ComputeStrainRatex(Vec* eps_g,Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads, Materials* materials, Parameters* parameters); 14 13 15 14 #endif /* _COMPUTESTRAINRATEX_H */ -
issm/trunk/src/c/objects/Elements/Beam.cpp
r4250 r4405 196 196 double xyz_list[numgrids][3]; 197 197 double gauss[numgrids][numgrids]={{1,0},{0,1}}; 198 int analysis_type,sub_analysis_type;198 int analysis_type; 199 199 200 200 /*retrive parameters: */ 201 201 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 202 parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);203 202 204 203 /*Get dof list on which we will plug the pressure values: */ … … 266 265 void Beam::CreatePVector(Vec pg){ 267 266 268 int analysis_type ,sub_analysis_type;267 int analysis_type; 269 268 270 269 /*retrive parameters: */ 271 270 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 272 parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);273 271 274 272 /*Just branch to the correct load generator, according to the type of analysis we are carrying out: */ -
issm/trunk/src/c/objects/Elements/Penta.cpp
r4402 r4405 432 432 double stresstensor[6]={0.0}; 433 433 double viscosity; 434 int analysis_type ,sub_analysis_type;434 int analysis_type; 435 435 436 436 int dofv[3]={0,1,2}; … … 464 464 /*retrive parameters: */ 465 465 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 466 parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);467 466 468 467 /*Check analysis_types*/ 469 if (analysis_type!=Diagnostic AnalysisEnum || sub_analysis_type!=StokesAnalysisEnum) ISSMERROR("Not supported yet!");468 if (analysis_type!=DiagnosticStokesAnalysisEnum) ISSMERROR("Not supported yet!"); 470 469 471 470 /*recover some inputs: */ … … 715 714 void Penta::CreatePVector(Vec pg){ 716 715 717 int analysis_type ,sub_analysis_type;716 int analysis_type; 718 717 719 718 /*retrive parameters: */ 720 719 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 721 parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);722 720 723 721 /*if debugging mode, check that all pointers exist*/ … … 860 858 void Penta::GetSolutionFromInputs(Vec solution){ 861 859 862 int analysis_type ,sub_analysis_type;860 int analysis_type; 863 861 864 862 /*retrive parameters: */ 865 863 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 866 parameters->FindParam(&sub_analysis_type,AnalysisTypeEnum);867 868 864 869 865 /*Just branch to the correct InputUpdateFromSolution generator, according to the type of analysis we are carrying out: */ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4402 r4405 3566 3566 /*}}}*/ 3567 3567 /*FUNCTION Tria::CreateKMatrixSlope {{{1*/ 3568 3569 3568 void Tria::CreateKMatrixSlope(Mat Kgg){ 3570 3569 … … 4400 4399 double pe_g_gaussian[numdof]; 4401 4400 double slope[2]; 4402 int sub_analysis_type;4401 int analysis_type; 4403 4402 4404 4403 /*retrive parameters: */ 4405 parameters->FindParam(& sub_analysis_type,AnalysisTypeEnum);4404 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 4406 4405 4407 4406 /* Get node coordinates and dof list: */ … … 4422 4421 gauss_l1l2l3[2]=*(third_gauss_area_coord+ig); 4423 4422 4424 if ( ( sub_analysis_type==SurfaceSlopeXAnalysisEnum) || (sub_analysis_type==SurfaceSlopeYAnalysisEnum)){4423 if ( (analysis_type==SurfaceSlopeXAnalysisEnum) || (analysis_type==SurfaceSlopeYAnalysisEnum)){ 4425 4424 inputs->GetParameterDerivativeValue(&slope[0],&xyz_list[0][0],&gauss_l1l2l3[0],SurfaceEnum); 4426 4425 } 4427 if ( ( sub_analysis_type==BedSlopeXAnalysisEnum) || (sub_analysis_type==BedSlopeYAnalysisEnum)){4426 if ( (analysis_type==BedSlopeXAnalysisEnum) || (analysis_type==BedSlopeYAnalysisEnum)){ 4428 4427 inputs->GetParameterDerivativeValue(&slope[0],&xyz_list[0][0],&gauss_l1l2l3[0],BedEnum); 4429 4428 } … … 4436 4435 4437 4436 /*Build pe_g_gaussian vector: */ 4438 if ( ( sub_analysis_type==SurfaceSlopeXAnalysisEnum) || (sub_analysis_type==BedSlopeXAnalysisEnum)){4437 if ( (analysis_type==SurfaceSlopeXAnalysisEnum) || (analysis_type==BedSlopeXAnalysisEnum)){ 4439 4438 for(i=0;i<numdof;i++) pe_g_gaussian[i]=Jdet*gauss_weight*slope[0]*l1l2l3[i]; 4440 4439 } 4441 if ( ( sub_analysis_type==SurfaceSlopeYAnalysisEnum) || (sub_analysis_type==BedSlopeYAnalysisEnum)){4440 if ( (analysis_type==SurfaceSlopeYAnalysisEnum) || (analysis_type==BedSlopeYAnalysisEnum)){ 4442 4441 for(i=0;i<numdof;i++) pe_g_gaussian[i]=Jdet*gauss_weight*slope[1]*l1l2l3[i]; 4443 4442 } -
issm/trunk/src/c/objects/Loads/Numericalflux.cpp
r4396 r4405 356 356 /* local declarations */ 357 357 int i,j; 358 int analysis_type ,sub_analysis_type;358 int analysis_type; 359 359 360 360 /* node data: */ … … 395 395 /*Retrieve parameters: */ 396 396 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 397 this->parameters->FindParam(&sub_analysis_type,SubAnalysisTypeEnum);398 397 399 398 /*recover objects from hooks: */ … … 475 474 /* local declarations */ 476 475 int i,j; 477 int analysis_type ,sub_analysis_type;476 int analysis_type; 478 477 479 478 /* node data: */ … … 515 514 /*Retrieve parameters: */ 516 515 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 517 this->parameters->FindParam(&sub_analysis_type,SubAnalysisTypeEnum);518 516 519 517 /*recover objects from hooks: */ … … 605 603 /* local declarations */ 606 604 int i,j; 607 int analysis_type ,sub_analysis_type;605 int analysis_type; 608 606 609 607 /* node data: */ … … 649 647 /*Retrieve parameters: */ 650 648 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 651 this->parameters->FindParam(&sub_analysis_type,SubAnalysisTypeEnum);652 649 653 650 /*recover parameters: */ -
issm/trunk/src/c/objects/Loads/Pengrid.cpp
r4396 r4405 402 402 void Pengrid::PenaltyConstrain(int* punstable){ 403 403 404 int analysis_type ,sub_analysis_type;404 int analysis_type; 405 405 406 406 /*Retrieve parameters: */ 407 407 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 408 this->parameters->FindParam(&sub_analysis_type,SubAnalysisTypeEnum); 409 410 if ((analysis_type==DiagnosticAnalysisEnum) && ((sub_analysis_type==StokesAnalysisEnum))){ 411 408 409 if (analysis_type==DiagnosticStokesAnalysisEnum){ 412 410 /*No penalty to check*/ 413 411 return; 414 415 412 } 416 413 else if (analysis_type==ThermalAnalysisEnum){ 417 418 414 PenaltyConstrainThermal(punstable); 419 420 415 } 421 416 else if (analysis_type==MeltingAnalysisEnum){ 422 423 417 /*No penalty to check*/ 424 418 return; 425 426 419 } 427 420 else{ 428 ISSMERROR(" %s%i%s%i%s","analysis: ",analysis_type," and sub_analysis_type: ",sub_analysis_type," not supported yet");421 ISSMERROR("analysis: %s not supported yet",EnumAsString(analysis_type)); 429 422 } 430 423
Note:
See TracChangeset
for help on using the changeset viewer.