Show
Ignore:
Timestamp:
04/04/08 03:02:50 (9 months ago)
Author:
gary
Message:

merge of r1913-1915 on mainline

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/c08_branch/source/cdgetlinelist.cpp

    r1815 r1916  
    22 * others.  For conditions of distribution and use see copyright notice in license.txt */ 
    33/*cdGetLineList routine to read in master list of emission line wavelengths and ids, for 
    4  * generating loc grids, 
    5  * someday add cdGetNLRLineList */ 
     4 * generating loc grids */ 
    65#include "cddefines.h" 
    76#include "cddrive.h" 
     
    3837        chFilename = ( strlen(chFile) == 0 ) ? "LineList_BLR.dat" : chFile; 
    3938 
    40         /* >>chng 04 nov 06, had searched only on path, now search locally  
    41          * and then on path if not found */ 
    4239        /* we will check local space first, then on path if not present */ 
    4340        ioData = open_data( chFilename, "r", AS_LOCAL_DATA_TRY ); 
    4441 
    4542        if( ioData == NULL ) 
     43        { 
     44                /* did not find file, return -1 */ 
    4645                return -1; 
     46        } 
    4747 
    4848        /* count how many lines are in the file, ignoring all lines 
     
    6969 
    7070        /* create 1-d array of string labels */ 
    71         /* create first dim of space for labels */ 
    7271        *chLabels = (char**)MALLOC((size_t)(nLines+1)*sizeof(char *) ); 
    7372