123 aoranges = std::vector<GridboxRange>(0);
124 ranges = std::vector<GridboxRange>(0);
126 std::vector<Index> start;
127 std::vector<Index> end;
131 temp.
size = shell->getNumFunc();
134 index += shell->getNumFunc();
135 start.push_back(shell->getStartIndex());
136 end.push_back(shell->getStartIndex() + shell->getNumFunc());
138 std::vector<Index> startindex;
139 std::vector<Index> endindex;
141 if (start.size() > 1) {
142 startindex.push_back(start[0]);
144 for (
Index i = 0; i <
Index(start.size()) - 1; ++i) {
146 if (end[i] != start[i + 1]) {
147 startindex.push_back(start[i + 1]);
148 endindex.push_back(end[i]);
151 endindex.push_back(end[end.size() - 1]);
156 Index shellstart = 0;
157 for (
Index i = 0; i <
Index(startindex.size()); ++i) {
158 Index size = endindex[i] - startindex[i];
161 temp.
start = startindex[i];
165 temp2.
start = shellstart;