110 aoranges = std::vector<GridboxRange>(0);
111 ranges = std::vector<GridboxRange>(0);
113 std::vector<Index> start;
114 std::vector<Index> end;
118 temp.
size = shell->getNumFunc();
121 index += shell->getNumFunc();
122 start.push_back(shell->getStartIndex());
123 end.push_back(shell->getStartIndex() + shell->getNumFunc());
125 std::vector<Index> startindex;
126 std::vector<Index> endindex;
128 if (start.size() > 1) {
129 startindex.push_back(start[0]);
131 for (
Index i = 0; i <
Index(start.size()) - 1; ++i) {
133 if (end[i] != start[i + 1]) {
134 startindex.push_back(start[i + 1]);
135 endindex.push_back(end[i]);
138 endindex.push_back(end[end.size() - 1]);
143 Index shellstart = 0;
144 for (
Index i = 0; i <
Index(startindex.size()); ++i) {
145 Index size = endindex[i] - startindex[i];
148 temp.
start = startindex[i];
152 temp2.
start = shellstart;