94 aoranges = std::vector<GridboxRange>(0);
95 ranges = std::vector<GridboxRange>(0);
97 std::vector<Index> start;
98 std::vector<Index> end;
102 temp.
size = shell->getNumFunc();
105 index += shell->getNumFunc();
106 start.push_back(shell->getStartIndex());
107 end.push_back(shell->getStartIndex() + shell->getNumFunc());
109 std::vector<Index> startindex;
110 std::vector<Index> endindex;
112 if (start.size() > 1) {
113 startindex.push_back(start[0]);
115 for (
Index i = 0; i <
Index(start.size()) - 1; ++i) {
117 if (end[i] != start[i + 1]) {
118 startindex.push_back(start[i + 1]);
119 endindex.push_back(end[i]);
122 endindex.push_back(end[end.size() - 1]);
127 Index shellstart = 0;
128 for (
Index i = 0; i <
Index(startindex.size()); ++i) {
129 Index size = endindex[i] - startindex[i];
132 temp.
start = startindex[i];
136 temp2.
start = shellstart;