Show
Ignore:
Timestamp:
05/17/08 09:51:43 (8 months ago)
Author:
rjrw
Message:

Merged from trunk r2022:2078

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/atmdat_lamda.cpp

    r1942 r2079  
    113113        for( intcollindex = 0; intcollindex <NUM_COLLIDERS; intcollindex++ ) 
    114114        { 
    115                 CollRatesArray[intNS][intcollindex] = (double**)MALLOC((unsigned long)(ngMolLevs) * sizeof(double*)); 
    116                 for( ipHi = 0; ipHi<ngMolLevs; ipHi++ ) 
    117                 { 
    118                         CollRatesArray[intNS][intcollindex][ipHi] = (double*)MALLOC((unsigned long)(ngMolLevs) * sizeof(double)); 
    119                         for( ipLo = 0; ipLo<ngMolLevs; ipLo++ ) 
    120                         { 
    121                                 CollRatesArray[intNS][intcollindex][ipHi][ipLo] = 0.0; 
    122                         } 
    123                 } 
    124         } 
     115                CollRatesArray[intNS][intcollindex] = NULL; 
     116        } 
     117 
    125118 
    126119        if(read_whole_line( chLine , (int)sizeof(chLine) , atmolLevDATA ) == NULL ) 
     
    342335                        TotalInsanity(); 
    343336                } 
     337                /*This is where we allocate memory if the collider exists*/ 
     338                /*Needed to take care of the he collisions*/ 
     339                CollRatesArray[intNS][intCollIndex] = (double**)MALLOC((unsigned long)(ngMolLevs) * sizeof(double*)); 
     340                for( ipHi = 0; ipHi<ngMolLevs; ipHi++ ) 
     341                { 
     342                        CollRatesArray[intNS][intCollIndex][ipHi] = (double*)MALLOC((unsigned long)(ngMolLevs) * sizeof(double)); 
     343                        for( ipLo = 0; ipLo<ngMolLevs; ipLo++ ) 
     344                        { 
     345                                CollRatesArray[intNS][intCollIndex][ipHi][ipLo] = 0.0; 
     346                        } 
     347                } 
    344348                if(read_whole_line( chLine , (int)sizeof(chLine)  , atmolLevDATA ) == NULL ) 
    345349                {