File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -412,17 +412,19 @@ function remap end
412
412
413
413
function remap (field:: CC.Fields.Field , target_space:: CC.Spaces.AbstractSpace )
414
414
space = axes (field)
415
- space_are_compatible =
415
+ spaces_are_compatible =
416
416
space == target_space || CC. Spaces. issubspace (space, target_space) || CC. Spaces. issubspace (target_space, space)
417
417
418
+ @assert spaces_are_compatible || ClimaComms. context (space) isa ClimaComms. SingletonCommsContext " Remapping is not currently supported with MPI"
419
+
418
420
# TODO : Handle remapping of Vectors correctly
419
421
if hasproperty (field, :components )
420
422
@assert length (field. components) == 1 " Can only work with simple vectors"
421
423
field = field. components. data.:1
422
424
end
423
425
424
426
# If the spaces are the same or one is a subspace of the other, we can just return the input field
425
- space_are_compatible && return field
427
+ spaces_are_compatible && return field
426
428
427
429
# Get vector of LatLongPoints for the target space to get the hcoords
428
430
# Copy fields onto CPU so we regrid on the CPU
You can’t perform that action at this time.
0 commit comments