I'm trying to build GLDAS on Hera. After I updated the modulefiles for Hera, i was able to compile all the source code, except gldas_model.fd. The build fails at the link step.
interp_agrmet_sw.o: In function interp_agrmet_sw_': interp_agrmet_sw.F:(.text+0x1c97): undefined reference to ipolates'
interp_cmap.o: In function interp_cmap_': interp_cmap.F:(.text+0xa55): undefined reference to ipolates_'
retgdas.o: In function interp_gdas_': retgdas.F:(.text+0x1c4f): undefined reference to **polates0_'**
retgdas.F:(.text+0x1efc): undefined reference to `polates3_'
gmake: *** [Makefile.noah:54: ../gldas_model] Error 1_
The ip library linked is /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/intel/2021.5.0/ip-4.3.0-ozyjvbg/lib64/libip_4.a
I tried to add 'use ip_mod, only: ipolates' in interp_agrmet_sw.F and add the path of the include file '-I/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/intel/2021.5.0/ip-4.3.0-ozyjvbg/include_4', but I got
../obsrads/agrmet/interp_agrmet_sw.F(176): error #6285: There is no matching specific subroutine for this generic subroutine call. [IPOLATES]
call ipolates (ip,ipopt,kgdsi,kgdso,mi,mo, &
-------^
compilation aborted for ../obsrads/agrmet/interp_agrmet_sw.F (code 1)
gmake: *** [Makefile.noah:107: interp_agrmet_sw.o] Error 1
I'm trying to build GLDAS on Hera. After I updated the modulefiles for Hera, i was able to compile all the source code, except gldas_model.fd. The build fails at the link step.
interp_agrmet_sw.o: In function
interp_agrmet_sw_': interp_agrmet_sw.F:(.text+0x1c97): undefined reference toipolates'interp_cmap.o: In function
interp_cmap_': interp_cmap.F:(.text+0xa55): undefined reference toipolates_'retgdas.o: In function
interp_gdas_': retgdas.F:(.text+0x1c4f): undefined reference to **polates0_'**retgdas.F:(.text+0x1efc): undefined reference to `polates3_'
gmake: *** [Makefile.noah:54: ../gldas_model] Error 1_
The ip library linked is /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/intel/2021.5.0/ip-4.3.0-ozyjvbg/lib64/libip_4.a
I tried to add 'use ip_mod, only: ipolates' in interp_agrmet_sw.F and add the path of the include file '-I/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev-rocky8/install/intel/2021.5.0/ip-4.3.0-ozyjvbg/include_4', but I got
../obsrads/agrmet/interp_agrmet_sw.F(176): error #6285: There is no matching specific subroutine for this generic subroutine call. [IPOLATES]
call ipolates (ip,ipopt,kgdsi,kgdso,mi,mo, &
-------^
compilation aborted for ../obsrads/agrmet/interp_agrmet_sw.F (code 1)
gmake: *** [Makefile.noah:107: interp_agrmet_sw.o] Error 1