@@ -64,6 +64,7 @@ def open_boutdataset(
6464 run_name = None ,
6565 info = True ,
6666 is_restart = None ,
67+ is_mms_dump = False ,
6768 ** kwargs ,
6869):
6970 """Load a dataset from a set of BOUT output files, including the
@@ -179,12 +180,12 @@ def open_boutdataset(
179180 chunks = {}
180181
181182 input_type = _check_dataset_type (datapath )
182-
183183 if is_restart is None :
184184 is_restart = input_type == "restart"
185185 elif is_restart is True :
186186 input_type = "restart"
187-
187+ if is_mms_dump :
188+ input_type = "dump"
188189 if "reload" in input_type :
189190 if input_type == "reload" :
190191 if isinstance (datapath , Path ):
@@ -358,7 +359,12 @@ def attrs_remove_section(obj, section):
358359 ds .metadata [v ] = grid [v ].values
359360
360361 # Update coordinates to match particular geometry of grid
361- ds = geometries .apply_geometry (ds , geometry , grid = grid )
362+ if input_type == "grid" :
363+ # Specify coordinate names to avoid name clash
364+ coordinates = {"x" : "psi_poloidal" , "y" : "y" , "z" : "zeta" }
365+ else :
366+ coordinates = None
367+ ds = geometries .apply_geometry (ds , geometry , grid = grid , coordinates = coordinates )
362368
363369 if remove_yboundaries :
364370 ds = ds .bout .remove_yboundaries ()
@@ -616,7 +622,6 @@ def _auto_open_mfboutdataset(
616622 nxpe , nype , mxg , myg , mxsub , mysub , is_squashed_doublenull = _read_splitting (
617623 filepaths [0 ], info , keep_yboundaries
618624 )
619-
620625 if is_squashed_doublenull :
621626 # Need to remove y-boundaries after loading: (i) in case
622627 # we are loading a squashed data-set, in which case we
0 commit comments