Changeset 2863 for trunk


Ignore:
Timestamp:
10/23/13 17:11:24 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): sd

Description: Describe your changes here...

Bug fix on sdsave.
Properly handle the case when empty restfrequency row is mixed with
rows with restfrequency.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSWriter.cpp

    r2842 r2863  
    24992499
    25002500  Int srcId = 0 ;
    2501   Vector<Double> restFreq ;
    2502   Vector<String> molName ;
    2503   Vector<String> fMolName ;
    25042501
    25052502  // row based
     
    25582555
    25592556      // get necessary information
     2557      Vector<Double> restFreq ;
     2558      Vector<String> molName ;
     2559      Vector<String> fMolName ;
    25602560      ROScalarColumn<uInt> molIdCol( t1, "MOLECULE_ID" ) ;
    25612561      uInt molId = molIdCol( 0 ) ;
     
    25682568
    25692569      // REST_FREQUENCY
    2570       *restfreqRF = restFreq ;
     2570      restfreqRF.define(restFreq);
    25712571
    25722572      // TRANSITION
    2573       //*transitionRF = fMolName ;
    25742573      Vector<String> transition ;
    25752574      if ( fMolName.size() != 0 ) {
     
    25832582        transition = "" ;
    25842583      }
    2585       *transitionRF = transition ;
    2586 
    2587       // SYSVEL 
     2584      transitionRF.define(transition);
     2585
     2586      // SYSVEL
    25882587      Vector<Double> sysvelArr( numFreq, srcVel ) ;
    2589       *sysvelRF = sysvelArr ;
     2588      sysvelRF.define(sysvelArr);
    25902589
    25912590      //
Note: See TracChangeset for help on using the changeset viewer.