Show
Ignore:
Timestamp:
05/21/07 12:12:52 (20 months ago)
Author:
rporter
Message:

merge changes from porter branch. These are all iso refactoring changes. Test suite has zero botches.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/helike.cpp

    r1116 r1142  
    6969/*lint -e662 creation of  out of bound pointer */ 
    7070/*lint -e661 creation of  out of bound pointer */ 
    71  
    72 /*      The Elevels data type, and then the iso.quant_desig[ipHE_LIKE] structure, 
    73  *  which contain the quantum numbers n,l, and s for a given 
    74  *  energy level, are defined in iso.h, for use in multiple subroutines. */ 
    75  
    76 /*typedef struct {  
    77         long n; 
    78         long s; 
    79         long l; 
    80 } Elevels; iso.h */  
    81  
    82 /* An array of structures each containing for a given element, n,l, and s 
    83  * s=0 for singlets, s=1 for triplets 
    84  * in helike.h 
    85 static Elevels **iso.quant_desig[ipHE_LIKE]; */ 
    8671 
    8772/*static long ipLev,globalZ;*/ 
     
    172157 
    173158                                /* evaluate recombination rates */ 
    174                                 /* if the flag iso.lgHugeCaseB[ipISO] is true, cloudy exits in HeRecom(). */ 
    175159                                HeRecom(nelem); 
    176160 
     
    303287 
    304288                ipFirstCollapsed= iso.numLevels_local[ipHE_LIKE][nelem]-iso.nCollapsed_local[ipHE_LIKE][nelem]; 
    305                 nResolved = iso.quant_desig[ipHE_LIKE][nelem][ipFirstCollapsed-1].n; 
     289                nResolved = StatesElem[ipHE_LIKE][nelem][ipFirstCollapsed-1].n; 
    306290                ASSERT( nResolved == iso.n_HighestResolved_local[ipHE_LIKE][nelem] ); 
    307291                ASSERT(nResolved > 0 ); 
     
    344328        for( il = ipFirstCollapsed; il < iso.numLevels_local[ipHE_LIKE][nelem]; ++il) 
    345329        { 
    346                 in = iso.quant_desig[ipHE_LIKE][nelem][il].n; 
     330                in = StatesElem[ipHE_LIKE][nelem][il].n; 
    347331 
    348332                /* prin quan number of collapsed levels */ 
     
    365349 
    366350                ipFirstCollapsed= iso.numLevels_local[ipHE_LIKE][nelem]-iso.nCollapsed_local[ipHE_LIKE][nelem]; 
    367                 nResolved = iso.quant_desig[ipHE_LIKE][nelem][ipFirstCollapsed-1].n; 
     351                nResolved = StatesElem[ipHE_LIKE][nelem][ipFirstCollapsed-1].n; 
    368352                ASSERT( nResolved == iso.n_HighestResolved_local[ipHE_LIKE][nelem] ); 
    369353                ASSERT(nResolved > 0 ); 
     
    407391        for( il = ipFirstCollapsed; il < iso.numLevels_local[ipHE_LIKE][nelem]; ++il) 
    408392        { 
    409                 in = iso.quant_desig[ipHE_LIKE][nelem][il].n; 
     393                in = StatesElem[ipHE_LIKE][nelem][il].n; 
    410394                /* prin quan number of collapsed levels */ 
    411395                fprintf(ioQQQ," %2ld           ",in);