Hi Phong,
Thank you for your reply and suggestion. It solved my issue partially, but I'm still observing a small mass imbalance when comparing the sum of all boundary mass fluxes with the change in mass content within the surface & subsurface domains.
Here is the hillslope model I'm working with.
- The water flow reached a steady state after an ATS flow spin-up, using constant precipitation, constant head at left boundary and right boundary.
- Next, a non-reactive tracer was added to the left subsurface boundary at a constant concentration. After a 10y simulation, it's converging to a concentration profile below.

I'm interested to get the mass fluxes at right surface and subsurface boundaries. However, for the case described above, my calculation show:
- Left subsurface boundary mass flux: 64811 molC/d
- Right subsurface boundary mass flux: 63427 molC/d
- Right surface boundary mass flux: 617 molC/d
Based on these values, the net mass flux for surface+subsurface is 768 molC/d.
Yet, the change of mass content within surface+subsurface domains indicates a net mass flux of 21 molC/d is needed to meet mass balance.
I wrote observation and visualization at every cycle for the calculation above. I also checked the mass flux through precipitation, bottom/front/back boundary face, they are all neglectable.
Did I miss anything here? This case was done under ats-1.5.2. I also tested it with ats-master, but got some other unexpected results, which I'll address in a separate conversion.
Thank you for your help.
Yi