I'm trying to build the CESM2.1.2 on my own linux platform by prescribing the machine name "homebrew" for the create_newcase, and I can successfully run the case.setup. However, when I run the case.build, it failed to build the executable file cesm.exe at last and showed the information about unsuccessfully linking the netcdf and mpi libs.
I specified the environment for the NETCDF lib in the config_machines.xml as follows,
<environment_variables>
<env name="NETCDF_PATH">/opt/netcdf/netcdf-c4.6.2-f4.4.4-intel2019</env>
</environment_variables>
In the cesm/cases/*/Tools/Makefile, I can see that netcdf and mpi should be linked while building the cesm.exe.
$(EXEC_SE): $(OBJS) $(ULIBDEP) $(CSMSHARELIB) $(MCTLIBS) $(PIOLIB) $(GPTLLIB)
$(LD) -o $(EXEC_SE) $(OBJS) $(CLIBS) $(ULIBS) $(SLIBS) $(MLIBS) $(LDFLAGS)
I'm not sure whether the settings of netcdf and mpi are needed in other places, any suggestions to solve this problem? Attached please find the config_machines.xml and Macro.make.
Thank you.
Sun
I specified the environment for the NETCDF lib in the config_machines.xml as follows,
<environment_variables>
<env name="NETCDF_PATH">/opt/netcdf/netcdf-c4.6.2-f4.4.4-intel2019</env>
</environment_variables>
In the cesm/cases/*/Tools/Makefile, I can see that netcdf and mpi should be linked while building the cesm.exe.
$(EXEC_SE): $(OBJS) $(ULIBDEP) $(CSMSHARELIB) $(MCTLIBS) $(PIOLIB) $(GPTLLIB)
$(LD) -o $(EXEC_SE) $(OBJS) $(CLIBS) $(ULIBS) $(SLIBS) $(MLIBS) $(LDFLAGS)
I'm not sure whether the settings of netcdf and mpi are needed in other places, any suggestions to solve this problem? Attached please find the config_machines.xml and Macro.make.
Thank you.
Sun