allow custom definition of the computational domain
fixed computation of the maximum value