mosaic cleanup and rename to grid_utils #1626
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In this PR,
mosaic
directory has been renamed togrid_utils
.mosaic_utils.c/h
have been renamed togrid_utils.c/h
create_xgrid.c/h
files have been moved tohoriz_interp/include
and have been renamed tohoriz_interp_conserve_xgrid.c/h
interp.c/h
,mosaic.F90
,grid.F90
,read_mosaic.c/h
- have been removed. The sole function that is used in read_mosaic -get_global_area
has been moved togrid_utils.c/h
tree_utils.c/h
create_xgrid.c/h
have been moved togrid_utils.c/h
grid_utils.c/h
haave been removed. These include box_area, nearest_index, tokenize, grid_box_radius, dist_between_boxes, box_ctrlat, box_ctrlon, and get_grid_area_dimencreate_xgrid_2dx2d_order2
can be invoked successful has been added. (The currently existing horiz_interp unit tests already test forcreate_xgrid_2dx2d_order1
)With these changes, grid_utils now consists of
Grid_utils is now used by
exchange
,mosaic2
, andhoriz_interp
Horiz_interp/include now in addition holds horiz_interp_conserve_xgrid.c/h .
Fixes #1618
How Has This Been Tested?
FMS compiles with cmake and autotools. Horiz_interp unit tests pass.
Checklist:
make distcheck
passes