EarthWorksOrg / EarthWorks

Other
3 stars 3 forks source link

Cases that use CLUBB physics and NVHPC compilers fail to compile #71

Closed gdicker1 closed 2 months ago

gdicker1 commented 2 months ago

This is due to how the build rules get applied as cases will complain: gmake: *** No rule to make target 'mt95.F90', needed by 'mt95.o'. Stop.

This is because there is a mt95.f90 file in CLUBB, but compilers seem to expect a F90 file. So this leads to a simple workaround:

# From the root of an EarthWorks clone
mv components/cam/src/physics/clubb/src/CLUBB_core/mt95.f90 \
   components/cam/src/physics/clubb/src/CLUBB_core/mt95.F90

This workaround won't be needed when a new version of CLUBB is integrated when the cam6_4_019 is merged into EarthWorksOrg/CAM. (i.e. This is fixed upstream.)

gdicker1 commented 2 months ago

See also this comment in #69

gdicker1 commented 2 months ago

Closed by incorporating https://github.com/EarthWorksOrg/CAM/pull/31 through https://github.com/EarthWorksOrg/EarthWorks/pull/72