Changeset 5455
- Timestamp:
- 08/20/10 14:50:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Loads/Numericalflux.cpp
r5454 r5455 312 312 313 313 int type; 314 315 /*recover type: */ 314 int analysis_type; 315 316 /*recover some parameters*/ 316 317 inputs->GetParameterValue(&type,TypeEnum); 317 318 if (type==InternalEnum){ 319 CreateKMatrixInternal(Kgg); 320 } 321 else if (type==BoundaryEnum){ 322 CreateKMatrixBoundary(Kgg); 323 } 324 else ISSMERROR("type not supported yet"); 318 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 319 320 if (analysis_type==PrognosticAnalysisEnum || analysis_type==BalancedthicknessAnalysisEnum || analysis_type==AdjointBalancedthicknessAnalysisEnum){ 321 if (type==InternalEnum) CreateKMatrixInternal(Kgg); 322 else if (type==BoundaryEnum) CreateKMatrixBoundary(Kgg); 323 else ISSMERROR("type not supported yet"); 324 } 325 else{ 326 ISSMERROR("analysis_type %s not supported yet",EnumToString(analysis_type)); 327 } 325 328 326 329 } … … 330 333 331 334 int type; 332 333 /*recover type: */ 335 int analysis_type; 336 337 /*recover some parameters*/ 334 338 inputs->GetParameterValue(&type,TypeEnum); 335 336 if (type==InternalEnum){ 337 CreatePVectorInternal(pg); 338 } 339 else if (type==BoundaryEnum){ 340 CreatePVectorBoundary(pg); 341 } 342 else ISSMERROR("type not supported yet"); 339 this->parameters->FindParam(&analysis_type,AnalysisTypeEnum); 340 341 if (analysis_type==PrognosticAnalysisEnum || analysis_type==BalancedthicknessAnalysisEnum){ 342 if (type==InternalEnum) CreatePVectorInternal(pg); 343 else if (type==BoundaryEnum) CreatePVectorBoundary(pg); 344 else ISSMERROR("type not supported yet"); 345 } 346 else if (analysis_type==AdjointBalancedthicknessAnalysisEnum){ 347 return; 348 } 349 else{ 350 ISSMERROR("analysis_type %s not supported yet",EnumToString(analysis_type)); 351 } 352 343 353 344 354 }
Note:
See TracChangeset
for help on using the changeset viewer.