[bug] Grid definition closed too early.
Causes XIOS error "Invalid reference to grid 'grid_nslm_nstm'."