Thank you for your interest in MRST.
Your script does not show if you have a variable named 'cellDims' in your environment. If you do not, then the statement
G_ups = cartGrid(upscaled, cellDims)
will, undesirably, include a call to MRST's built-in function 'cellDims' (fullfile(ROOTDIR, 'utils', 'cellDims.m')) and that function expects to be called with two parameters—an existing MRST grid and list of cell indices for which to compute the (X,Y,Z) cell
extents/physical dimensions.
If that is not what you intended to do, then I suggest creating an actual variable named 'cellDims' with the real physical dimensions of your upscaled grid. Otherwise, you should pass the real parameters to into the 'cellDims' function instead.
Best Regards,
Bård Skaflestad
MRST Developer
SINTEF Digital, Mathematics & Cybernetics
Applied Computational Science group