73MGOJCJR5RBFRRV4CWYIPB3JSKJEXRBNG63SX3IDR4GJHEL2TWQC
for (int gi = 0; gi < numgroups; ++gi) {
if (CCTK_GroupTypeI(gi) != CCTK_GF)
continue;
groups.push_back(gi);
const auto &leveldata = ghext->leveldata.at(level);
for (const auto &groupdataptr : leveldata.groupdata) {
// Restrict only grid functions
if (groupdataptr) {
auto &restrict groupdata = *groupdataptr;
// Restrict only evolved grid functions
if (groupdata.do_checkpoint)
groups.push_back(groupdata.groupindex);
}