Changeset 15286


Ignore:
Timestamp:
06/19/13 14:16:58 (12 years ago)
Author:
bdef
Message:

BUG: geting read of unnecessary delete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15283 r15286  
    60516051        /*Check that all nodes are active, else return empty matrix*/
    60526052        if(!this->AllActive()){
    6053                 delete gauss;
    60546053                return NULL;
    60556054        }
     
    62266225        /*Check that all nodes are active, else return empty matrix*/
    62276226        if(!this->AllActive()){
    6228                 delete gauss;
    62296227                return NULL;
    62306228        }
     
    65246522                switch(transfermethod){
    65256523                case 0:
    6526                         /*Just kipping the transfer to zero*/
    6527                         wh_trans=0.0;
     6524                        /*Just keepping the transfer to zero, should be OK with the initial value of transfer*/
    65286525                        break;
    65296526                case 1:
     
    65396536                       
    65406537                        for(int i=0;i<numdof;i++){
     6538                                /*No transfer if the EPL is not active*/
    65416539                                if(activeEpl[i]==0.0){
    65426540                                        wh_trans=0.0;
    6543                                         continue;
    6544                                 }
    6545                                
    6546                                 eplstoring[i]=matpar->GetEplStoring();         
    6547                                 sedstoring[i]=matpar->GetSedimentStoring();
    6548                                
    6549                                 if(sed_head[i]>epl_head[i]){
    6550                                         wh_trans=sed_trans*sedstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick);                         
    65516541                                }
    65526542                                else{
    6553                                         this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]);
    6554                                         wh_trans=sed_trans*eplstoring[i]*(epl_head[i]-sed_head[i])/(leakage*sed_thick);
    6555                                         if(sed_head[i]>=h_max){
    6556                                                 wh_trans=0.0;
     6543                                        eplstoring[i]=matpar->GetEplStoring();         
     6544                                        sedstoring[i]=matpar->GetSedimentStoring();
     6545                                       
     6546                                        /*EPL head higher than sediment head, transfer from the epl to the sediment*/
     6547                                        if(epl_head[i]>sed_head[i]){
     6548                                                wh_trans=eplstoring[i]*sed_trans*(epl_head[i]-sed_head[i])/(leakage*sed_thick);                         
     6549                                               
     6550                                                /*No transfer if the sediment head is allready at the maximum*/
     6551                                                this->GetHydrologyDCInefficientHmax(&h_max,nodes[i]);
     6552                                                if(sed_head[i]>=h_max)wh_trans=0.0;
     6553                                        }
     6554                                        /*EPL head lower than sediment head, transfer from the sediment to the epl*/
     6555                                        else if(epl_head[i]<sed_head[i]){
     6556                                                wh_trans=sedstoring[i]*sed_trans*(epl_head[i]-sed_head[i])/(leakage*sed_thick);                         
    65576557                                        }
    65586558                                }
     
    66356635                                if(sedhead[j] == sedheadmin){
    66366636                                        vec_mask->SetValue(nodes[j]->Sid(),1.,INS_VAL);
    6637                                         break;
     6637                                        //      break;
    66386638                                }
    66396639                        }
Note: See TracChangeset for help on using the changeset viewer.