Error estimation and adaptive spatial discretisation for quasi-brittle failure door T. Pannachet