p-Adaptation algorithm based on Truncation Error