NUNYA5E7NMMUTVAQKVO34GUQI3U2TJTCEIZZT3PAPZ3ZU5LB44BQC
// Only prolongate valid grid functions
bool all_invalid = true;
for (int vi = 0; vi < groupdata.numvars; ++vi)
all_invalid &= !coarsegroupdata.valid.at(tl).at(vi).valid_int &&
!coarsegroupdata.valid.at(tl).at(vi).valid_bnd &&
!groupdata.valid.at(tl).at(vi).valid_int;
if (all_invalid) {
for (int vi = 0; vi < groupdata.numvars; ++vi) {
groupdata.valid.at(tl).at(vi).valid_int = false;
groupdata.valid.at(tl).at(vi).valid_bnd = false;
}
} else {