NOAA-GFDL / FMS

GFDL's Flexible Modeling System
Other
87 stars 128 forks source link

set is_allocated in all horiz_interp_type_new routines #1538

Closed rem1776 closed 1 week ago

rem1776 commented 1 month ago

Description Sets the is_allocated field as well as the method_type within horiz_interp_types when called from any of the method specific horiz_interp_new routines. This should prevent reallocation errors as described in the issue below.

Also adds some calls to the unit test to test this functionality and renames one of the CPP macros to make more sense.

Fixes #1533

How Has This Been Tested? make distcheck with oneapi 2024.01 on amd box

Checklist:

rem1776 commented 1 week ago

@thomas-robinson @bensonr This should be ready now, I updated the SPHERICA to SPHERICAL. I noticed that the interpolation method values were made public in the libFMS.F90 file so I also removed them from there as well since they should only be internal.