def promote(self):
        shape = self.real_shape
        if len(shape) > 2:
            raise RuntimeError('FlowSolution is 3D')

        elif len(shape) > 1:
            imax, jmax = shape
            for i, arr in enumerate(self._arrays):
                name = self.name_of_obj(arr)
                new_arr = numpy.zeros((imax, jmax, 1))
                new_arr[:, :, 0] = arr[:, :]
                setattr(self, name, new_arr)
                self._arrays[i] = new_arr
        elif len(shape) > 0:
            imax = shape[0]
            for i, arr in enumerate(self._arrays):
                name = self.name_of_obj(arr)
                new_arr = numpy.zeros((imax, 1))
                new_arr[:, 0] = arr[:]
                setattr(self, name, new_arr)
                self._arrays[i] = new_arr
        else:
            raise RuntimeError('FlowSolution is empty!')

        for vector in self._vectors:
            vector.promote()
Promote from N-dimensional to N+1 dimensional index space.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/datatypes/domain/flow.py/FlowSolution.promote