Suppose we have a vector field $\vec A=ax\hat i + by\hat j+cz\hat k$ and we want to calculate its inward flux $\int \vec A\cdot\vec {dS}$ over the spherical surface $x^2+y^2+z^2=1$(with area vector directed radially inwards) by using Gauss Divergence theorem.
We do this by calculating divergence of $\vec A$ which is $a+b+c$. Now as volume element $dτ$ doesn't have direction, how will someone tell while doing $\int (\vec\nabla\cdot\vec A)d\tau$ that we are calculating flux through outer surface or inner surface. I mean the "effect" of area vector being outward or inward in the original calculation seems to be missing. Why is this happening?
Do I have to put negative by myself to take into consideration the inward flux?