@@ -745,7 +745,7 @@ Array<std::string> Component::getStateVariableNames() const
745
745
std::string::size_type front = subCompName.find_first_not_of (" \t\r\n " );
746
746
std::string::size_type back = subCompName.find_last_not_of (" \t\r\n " );
747
747
std::string prefix = " " ;
748
- if (back > front) // have non-whitespace name
748
+ if (back >= front) // have non-whitespace name
749
749
prefix = subCompName + " /" ;
750
750
for (int j = 0 ; j<nsubs; ++j) {
751
751
names.append (prefix + subnames[j]);
@@ -760,7 +760,7 @@ Array<std::string> Component::getStateVariableNames() const
760
760
std::string::size_type front = subCompName.find_first_not_of (" \t\r\n " );
761
761
std::string::size_type back = subCompName.find_last_not_of (" \t\r\n " );
762
762
std::string prefix = " " ;
763
- if (back > front) // have non-whitespace name
763
+ if (back >= front) // have non-whitespace name
764
764
prefix = subCompName+" /" ;
765
765
for (int j =0 ; j<nsubs; ++j){
766
766
names.append (prefix+subnames[j]);
@@ -774,7 +774,7 @@ Array<std::string> Component::getStateVariableNames() const
774
774
std::string::size_type front = subCompName.find_first_not_of (" \t\r\n " );
775
775
std::string::size_type back = subCompName.find_last_not_of (" \t\r\n " );
776
776
std::string prefix = " " ;
777
- if (back > front) // have non-whitespace name
777
+ if (back >= front) // have non-whitespace name
778
778
prefix = subCompName + " /" ;
779
779
for (int j = 0 ; j<nsubs; ++j) {
780
780
names.append (prefix + subnames[j]);
0 commit comments