Wall functions are widely combined to RANS turbulence models in CFD due to the significant computational savings they may allow compared to so called Low-Reynolds formulations. They are, however, particularly restricting in terms of meshing as they require the first computation point to fall into the logarithmic layer. Industrial simulations of internal flows are particularly challenging due to their inherent complexity that makes difficult to satisfy this condition everywhere. The present paper aims to propose an extension of the algebraic adaptive wall treatment recently developed by Wald et al. [4] and implemented in Code_Saturne [1] for the Elliptic Blending Reynolds Stress Model [2] by taking into account the pressure gradient. The new approach shows very promising results on a channel flow with an adverse pressure gradient (see figure 1). The final paper will include more complex academic test-cases such as the backward facing step and the 2D diffuser.