Changeset 4273
- Timestamp:
- 06/28/10 15:10:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r4268 r4273 4139 4139 4140 4140 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); 4142 4145 4143 4146 /*recover parameters: */ … … 4152 4155 4153 4156 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)); 4156 4159 4157 4160 for(;;){ … … 4161 4164 4162 4165 /*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 4164 4170 4165 4171 /*Stop if we have reached the surface*/ 4166 4172 if (penta->IsOnSurface()) break; 4173 ISSMASSERT(penta->Id()!=this->id); 4167 4174 4168 4175 }
Note:
See TracChangeset
for help on using the changeset viewer.