--- title: "Stopping Runs that Exceed a Pre-defined % Mass Balance Error" slug: "stopping-runs-that-exceed-a-pre-defined-mass-balance-error" description: "Learn how to stop runs that exceed a pre-defined % mass balance error. " tags: ["2D modelling"] updated: 2022-07-29T11:09:25Z published: 2022-07-29T11:09:25Z canonical: "help.floodmodeller.com/stopping-runs-that-exceed-a-pre-defined-mass-balance-error" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://help.floodmodeller.com/llms.txt > Use this file to discover all available pages before exploring further. # Stopping Runs that Exceed a Pre-defined % Mass Balance Error Flood Modeller 2D solver supports monitoring the mass balance error of the running model and stopping the run if a user defined mass balance error is exceeded. The option also requires that the user specify after what duration the checks should be made as it is quite common for models to exhibit a high % mass balance error at the start of the simulation when the cumulative inflow volume is relatively small. The following code snippet shows how to stop the model after an absolute mass balance error of 5% is exceeded after the first half hour of simulation time: ...