Changeset 899
- Timestamp:
- 04/11/10 22:04:56 (15 years ago)
- Location:
- library/bdm/base
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r896 r899 206 206 upsize = rv_up._dsize(); 207 207 v2v_up = rv.dataind ( rv_up ); 208 bdm_assert_debug ( v2v_up.length() == downsize, "rv is not fully in rv_up");208 bdm_assert_debug ( v2v_up.length() == downsize, string("rv (" + rv.to_string() + ") is not fully in rv_up(" + rv_up.to_string()) ); 209 209 } 210 210 … … 430 430 if ( rv._dsize() > 0 ) { 431 431 id = entries.length(); 432 names = concat ( names, prefix ); // diff 433 if( name.length() > 0 ) 434 { 435 concat( names, separator ); 436 concat( names, name ); 432 if( name.length() > 0 ) { 433 names = concat ( names, prefix + separator + name); // diff 434 } else { 435 names = concat ( names, prefix ); // diff 437 436 } 438 437 entries.set_length ( id + 1, true ); -
library/bdm/base/loggers.cpp
r766 r899 37 37 istart = 0; 38 38 for ( int j = 0; j < entries ( i ).length(); j++ ) { // same for as in add!!! 39 vec_name = names ( i ) + entries ( i ).name ( j );39 vec_name = names ( i ) + separator + entries ( i ).name ( j ); 40 40 iend = istart + entries ( i ).size ( j ) - 1; 41 41 itf << Name ( vec_name ) << vectors ( i ).get_cols ( istart, iend ); -
library/bdm/base/loggers.h
r766 r899 107 107 for ( int i = 0; i < entries.length(); i++ ) { 108 108 if ( entries ( i )._dsize() == 1 ) { 109 cout << names ( i ) << entries ( i ).name ( 0 ) << "\t";109 cout << names ( i ) << separator << entries ( i ).name ( 0 ) << "\t"; 110 110 } else 111 111 for ( int j = 0; j < vectors ( i ).cols(); j++ ) { 112 cout << names ( i ) << entries ( i ).scalarname ( j ) << "\t";112 cout << names ( i ) << separator << entries ( i ).scalarname ( j ) << "\t"; 113 113 } 114 114 }