I am not sure, if you need that in *every* overloaded `writeDomain`. Because for gridData, you can assume the `globalDomainOffset` == `domainOffset` and `globalDomainSize` == `domainSize` for easy cases, right?