TrilinosWrappers::MPI::Vector(temperature_solution)};
temperature_trans.interpolate(x_temperature, tmp);
- temperature_solution = std::move(tmp[0]);
- old_temperature_solution = std::move(tmp[1]);
+ temperature_solution = tmp[0];
+ old_temperature_solution = tmp[1];
// After the solution has been transferred we then enforce the constraints
// on the transferred solution.
temperature_constraints.distribute(distributed_temp1);
temperature_constraints.distribute(distributed_temp2);
- temperature_solution = std::move(distributed_temp1);
- old_temperature_solution = std::move(distributed_temp2);
+ temperature_solution = distributed_temp1;
+ old_temperature_solution = distributed_temp2;
+
+ Assert(old_temperature_solution.has_ghost_elements(),
+ ExcInternalError());
}
{
stokes_constraints.distribute(distributed_stokes);
stokes_constraints.distribute(old_distributed_stokes);
- stokes_solution = std::move(distributed_stokes);
- old_stokes_solution = std::move(old_distributed_stokes);
+ stokes_solution = distributed_stokes;
+ old_stokes_solution = old_distributed_stokes;
}
}
}