mom-ocean / MOM5

The Modular Ocean Model
https://mom-ocean.github.io/
GNU Lesser General Public License v3.0
82 stars 95 forks source link

EBM build failing, removed from CI #360

Closed aidanheerdegen closed 2 years ago

aidanheerdegen commented 2 years ago

The EBM (Energy Balanced Model) build is failing in CI with the updated FMS due to issues with calling signatures:

mpif90 -Duse_netCDF -Duse_libMPI -DLAND_BND_TRACERS -DOVERLOAD_C8 -DOVERLOAD_C4 -DOVERLOAD_R4 -Duse_netCDF4  -I/usr/include -O2 -no-pie -fcray-pointer -fdefault-real-8 -ffree-line-length-none -fno-range-check -I/usr/include  -c -I/home/runner/work/MOM5/MOM5/src/shared/include -I/home/runner/work/MOM5/MOM5/src/shared/mpp/include   /home/runner/work/MOM5/MOM5/src/shared/mpp/mpp_domains.F90
162
......................................................................................................................./home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:434:11:
163

164
           )
165
           1
166
Error: There is no specific subroutine for the generic ‘mpp_type_create’ at (1)
167
/home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:466:15:
168

169
               )
170
               1
171
Error: There is no specific subroutine for the generic ‘mpp_type_create’ at (1)
172
/home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:475:31:
173

174
                         pelist)
175
                               1
176
Error: There is no specific subroutine for the generic ‘mpp_alltoall’ at (1)
177
/home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:434:11:
178

179
           )
180
           1
181
Error: There is no specific subroutine for the generic ‘mpp_type_create’ at (1)
182
/home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:466:15:
183

184
               )
185
               1
186
Error: There is no specific subroutine for the generic ‘mpp_type_create’ at (1)
187
/home/runner/work/MOM5/MOM5/src/shared/mpp/include/mpp_do_global_field.h:475:31:
188

189
                         pelist)
190
                               1
191
Error: There is no specific subroutine for the generic ‘mpp_alltoall’ at (1)

It is the only model that uses the -DOVERLOAD_R4 preprocessor flag, which is about making real*4 interfaces for some routines. Weirdly it also -fdefault-real-8, which seems counterintuitive.

For the time being EBM has been removed from the Continuous Integration build testing. If this is a problem for someone and they need that build to work and be tested then make a PR, put it back and fix it.

aidanheerdegen commented 2 years ago

EBM dropped in https://github.com/mom-ocean/MOM5/pull/359