Updates for compiling on macOS with clang/gfortran or gcc/gfortran#1
Conversation
| set(NETCDF_LIBDIR $ENV{NETCDF}/lib) | ||
| set(NETCDF_LIBS -L$ENV{NETCDF}/lib -lnetcdff -lnetcdf) | ||
|
|
||
| set(SIONLIB $ENV{SIONLIB}) |
There was a problem hiding this comment.
Note that all these SIONLIB settings are ignored unless the MAKEOPT string contains SION=Y, hence no implication on your build. Note also that MKL is required on macOS, because the IBM functions in stochastic_physics aren't available on the mac.
|
|
||
| cmake ${PATHTR} ${CCPP_CMAKE_FLAGS} | ||
| make -j ${MAKE_THREADS} | ||
| make -j ${MAKE_THREADS} VERBOSE=1 |
There was a problem hiding this comment.
Please remove VERBOSE=1 option. It produces huge log files, which we save in every commit. This is useful for debugging but is not necessary in regular builds. VERBOSE=1 should be also removed from FV3/ccpp/build_ccpp.sh but that's outside the scope of this PR.
There was a problem hiding this comment.
Done. Let me know if you prefer to remove the SIONLIB hooks, since they are optional and not needed to run the model. MKL will have to stay for macOS, though.
There was a problem hiding this comment.
If they are not required then yes, please remove the SIONLIB hooks.
…y#524) * point to Jun fv3atm personal fork * add CDEPS submodule * add building instructions * fix issues that came from building * builds CDEPS targets * missed w3nco dep * cleanup use of FoX and remove redundant library links in components * Add 3 files generated by genf90.pl to the CDEPS-interface/ufs directory. (#1) * remove dependency on genf90.pl for CDEPS/share * remove FoX (#2) remove FoX dependency building and use ESMF Config instead. Co-authored-by: Jun Wang <junwang-noaa@users.noreply.github.com> Co-authored-by: BinLi-NOAA <bin.li@noaa.gov> Co-authored-by: Brian Curtis <brian.curtis@noaa.gov>
A couple of updates required to build on macOS with clang/gfortran or gcc/gfortran. This has been tested to compile successfully for: