Changeset 2134

Show
Ignore:
Timestamp:
06/28/08 02:34:32 (5 months ago)
Author:
gary
Message:

radius_next.cpp - bugfix - logic for zoning time dependent sim assumed first zone was zero

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/radius_next.cpp

    r1940 r2134  
    10361036        } 
    10371037 
    1038         /*>>chng 06 apr 03, add this 
    1039          * this is special case of time dependent recombination - conditions become 
    1040          * very homogenious and tend to crash into I fronts - use last iteration's  
    1041          * radius as guess of current case */ 
     1038        /* time dependent recombination - conditions become very homogeneous and  
     1039         * crash into I fronts - use last iteration's  radius as guess of current case */ 
    10421040        recom_dr_last_iter = BigRadius; 
    10431041        if( dynamics.lgStatic && dynamics.lgRecom ) 
    10441042        { 
     1043                /* first time through nzone == 1 */ 
    10451044                static long int nzone_recom = -1; 
    1046                 if( nzone==0 ) 
     1045                if( nzone<=1 ) 
    10471046                { 
    10481047                        /* initialization case */ 
    10491048                        nzone_recom = 0; 
    10501049                } 
    1051                 else if( radius.depth < struc.depth_last[struc.nzone_last-1] ) 
    1052                 { 
     1050                else if( radius.depth < struc.depth_last[struc.nzone_last-1] &&  
     1051                        nzone_recom < struc.nzone_last ) 
     1052                { 
     1053                        ASSERT( nzone_recom>=0 && nzone_recom<struc.nzone_last ); 
    10531054                        /* case where we are within previous computed structure  
    10541055                         * first possibly increase nzone_recom so that it points deeper