Changeset 16611
- Timestamp:
- 11/04/13 13:49:33 (12 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  issm/trunk-jpl/src/c/classes/Elements/Seg.cpp (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      issm/trunk-jpl/src/c/classes/Elements/Seg.cppr16529 r16611 348 348 IssmDouble xyz_list[NUMVERTICES][3]; 349 349 IssmDouble value; 350 Input* input = NULL; 350 351 Input* input2 = NULL; 351 352 … … 360 361 GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES); 361 362 this->parameters->FindParam(&input_enum,InputToL2ProjectEnum); 362 Input* input = inputs->GetInput(input_enum); 363 if(!input){ 364 switch(input_enum){ 365 case SurfaceSlopeXEnum: input2 = inputs->GetInput(SurfaceEnum); _assert_(input2); break; 366 case BedSlopeXEnum: input2 = inputs->GetInput(BedEnum); _assert_(input2); break; 367 default: _error_("input not found in element"); 368 } 363 switch(input_enum){ 364 case SurfaceSlopeXEnum: input2 = inputs->GetInput(SurfaceEnum); _assert_(input2); break; 365 case BedSlopeXEnum: input2 = inputs->GetInput(BedEnum); _assert_(input2); break; 366 default: input = inputs->GetInput(input_enum); 369 367 } 370 368 … … 378 376 GetNodalFunctions(basis,gauss); 379 377 380 if(input){ 378 if(input2){ 379 input2->GetInputDerivativeValue(&value,&xyz_list[0][0],gauss); 380 } 381 else{ 381 382 input->GetInputValue(&value,gauss); 382 }383 else{384 input2->GetInputDerivativeValue(&value,&xyz_list[0][0],gauss);385 383 } 386 384 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)
