- Log in to post comments
This is my first time to come across such kind of errors.
We added two variables (scffac_table and snow_emis_table) in noahmp_tables.f90. They will be used by module_sf_noahmplsm.f90. sfc_noahmp_drv.f has been modified too. All of them are under ccpp physics. More detail can be found from https://github.com/HelinWei-NOAA/ccpp-physics/tree/feature/noahmp
As you know Noah MP source codes will be compiled and included to both ipd and ccpp physics lib( libgfsphysics.a and libccppphys.a), I got the following errors from the last step of compiling (Linking Fortran executable ufs_model),
FV3/gfsphysics/libgfsphysics.a(noahmp_tables.f90.o):noahmp_tables.f90:(.text+0x0): first defined here
FV3/ccpp/physics/libccppphys.a(noahmp_tables.f90.o):(.bss+0x0): multiple definition of `noahmp_tables_mp_irri_table_'
FV3/gfsphysics/libgfsphysics.a(noahmp_tables.f90.o):(.bss+0x0): first defined here
FV3/ccpp/physics/libccppphys.a(noahmp_tables.f90.o):(.bss+0x40): multiple definition of `noahmp_tables_mp_esp5_table_'
FV3/gfsphysics/libgfsphysics.a(noahmp_tables.f90.o):(.bss+0x40): first defined here
FV3/ccpp/physics/libccppphys.a(noahmp_tables.f90.o):(.bss+0x140): multiple definition of `noahmp_tables_mp_esp4_table_'
FV3/gfsphysics/libgfsphysics.a(noahmp_tables.f90.o):(.bss+0x140): first defined here
FV3/ccpp/physics/libccppphys.a(noahmp_tables.f90.o):(.data+0x0): multiple definition of `noahmp_tables_mp_bio2lai_table_'
.....
/scratch1/NCEPDEV/global/Helin.Wei/save/git/ufs-weather-model/tests/compile_1.log.fail
multiple definition (duplication in ipd and ccpp version of routines).
It was fine before we made some changes in sfc_noahmp_drv.f. We added following two lines:
parameters%scffac = scffac_table(vegtype) !snow cover factor
parameters%snow_emis = snow_emis_table
If we remove these two lines and keep all other changes, the compiling can be completed without any error.