Changeset 4273


Ignore:
Timestamp:
06/28/10 15:10:14 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed bug in extrude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r4268 r4273  
    41394139
    41404140        Penta* penta=NULL;
    4141         Input* this_input=NULL;
     4141        Input* original_input=NULL;
     4142
     4143        /*Make a copy of the original input: */
     4144        original_input=(Input*)this->inputs->GetInput(enum_type);
    41424145
    41434146        /*recover parameters: */
     
    41524155
    41534156                penta=this;
    4154                 this_input=this->inputs->GetInput(enum_type);
    4155                 if(!this_input)ISSMERROR("%s%s"," could not find input with enum:",EnumAsString(enum_type));
     4157                original_input=(Input*)this->inputs->GetInput(enum_type);
     4158                if(!original_input) ISSMERROR("%s%s"," could not find input with enum:",EnumAsString(enum_type));
    41564159
    41574160                for(;;){
     
    41614164
    41624165                        /*Add input of the basal element*/
    4163                         penta->inputs->AddInput(this_input);
     4166                        Input* copy=NULL;
     4167                        copy=(Input*)original_input->copy();
     4168                        inputs->AddObject((Input*)copy);
     4169
    41644170
    41654171                        /*Stop if we have reached the surface*/
    41664172                        if (penta->IsOnSurface()) break;
     4173                        ISSMASSERT(penta->Id()!=this->id);
    41674174
    41684175                }
Note: See TracChangeset for help on using the changeset viewer.