Adapted numerical schemes for differential problems