Changeset 12275


Ignore:
Timestamp:
05/23/12 14:25:54 (13 years ago)
Author:
cborstad
Message:

fixes for most of the 3D nightly runs on branch

Location:
issm/branches/trunk-jpl-damage/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp

    r12274 r12275  
    13081308        for(;;){
    13091309
    1310                 /*Step1: Get original input (to be depth avegaged): */
     1310                /*Step1: Get original input (to be depth averaged): */
    13111311                if (object_enum==MeshElementsEnum)
    13121312                 original_input=(Input*)penta->inputs->GetInput(enum_type);
     
    44754475        Input* input=NULL;
    44764476
    4477         if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
     4477        if(enum_type==MaterialsRheologyBbarEnum){
    44784478                if(!IsOnBed()) return;
    4479                 input=(Input*)matice->inputs->GetInput(enum_type);
     4479                input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4480        }
     4481        else if(enum_type==MaterialsRheologyZbarEnum){
     4482                if(!IsOnBed()) return;
     4483                input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum);
    44804484        }
    44814485        else{
     
    44944498        Input* input=NULL;
    44954499
    4496         if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
    4497                 input=(Input*)matice->inputs->GetInput(enum_type);
     4500        if(enum_type==MaterialsRheologyBbarEnum){
     4501                input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4502        }
     4503        else if(enum_type==MaterialsRheologyZbarEnum){
     4504                input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum);
    44984505        }
    44994506        else{
     
    45134520        Input* input=NULL;
    45144521
    4515         if(enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum){
    4516                 input=(Input*)matice->inputs->GetInput(enum_type);
     4522        if(enum_type==MaterialsRheologyBbarEnum) {
     4523                input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum);
     4524        }
     4525        else if(enum_type==MaterialsRheologyZbarEnum) {
     4526                input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum);
    45174527        }
    45184528        else{
     
    45594569        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
    45604570
     4571        /*Depth Averaging Z*/
     4572        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
     4573
    45614574        /*Call Tria function*/
    45624575        Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria.
     
    45664579        /*Delete B averaged*/
    45674580        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
     4581
     4582        /*Delete Z averaged*/
     4583        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
    45684584
    45694585        /*clean up and return*/
     
    51355151        for(int i=0;i<num_controls;i++){
    51365152
    5137                 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){
     5153                if(control_type[i]==MaterialsRheologyBbarEnum){
    51385154                        if (!IsOnBed()) goto cleanup_and_return;
    5139                         input=(Input*)matice->inputs->GetInput(control_type[i]); _assert_(input);
     5155                        input=(Input*)matice->inputs->GetInput(MaterialsRheologyBEnum); _assert_(input);
     5156                }
     5157                else if(control_type[i]==MaterialsRheologyZbarEnum){
     5158                        if (!IsOnBed()) goto cleanup_and_return;
     5159                        input=(Input*)matice->inputs->GetInput(MaterialsRheologyZEnum); _assert_(input);
    51405160                }
    51415161                else{
     
    51495169                if (save_parameter) ((ControlInput*)input)->SaveValue();
    51505170
    5151                 if(control_type[i]==MaterialsRheologyBbarEnum || control_type[i]==MaterialsRheologyZbarEnum){
    5152                         this->InputExtrude(control_type[i],MaterialsEnum);
     5171                if(control_type[i]==MaterialsRheologyBbarEnum){
     5172                        this->InputExtrude(MaterialsRheologyBEnum,MaterialsEnum);
     5173                }
     5174                else if(control_type[i]==MaterialsRheologyZbarEnum){
     5175                        this->InputExtrude(MaterialsRheologyZEnum,MaterialsEnum);
    51535176                }
    51545177        }
  • issm/branches/trunk-jpl-damage/src/c/objects/Materials/Matice.cpp

    r12252 r12275  
    173173        /*Output*/
    174174        double Zbar;
    175 
     175       
    176176        inputs->GetInputAverage(&Zbar,MaterialsRheologyZbarEnum);
    177177        return Zbar;
Note: See TracChangeset for help on using the changeset viewer.