Giter Site home page Giter Site logo

Comments (3)

yantosca avatar yantosca commented on June 12, 2024 1

I pushed a fix for this. We use the Makefile_header.mk variable IS_HPC to prevent building the hemco_standalone.x executable if we are building GC for an HPC environment.

  	@$(MAKE) libHCO
  	@$(MAKE) libHCOX
  	@$(MAKE) libHCOI
ifeq ($(IS_HPC),0)
 	@$(MAKE) exe
endif

from gchp_legacy.

JiaweiZhuang avatar JiaweiZhuang commented on June 12, 2024

A better way to skip hemco_standalone.x is changing HEMCO/Makefile:

from

all:
	@$(MAKE) lib

...

lib:
	@$(MAKE) libHCO
	@$(MAKE) libHCOX
	@$(MAKE) libHCOI
	@$(MAKE) exe

to

all:
	@$(MAKE) lib
	@$(MAKE) exe
...

lib:
	@$(MAKE) libHCO
	@$(MAKE) libHCOX
	@$(MAKE) libHCOI

This feels a lot more intuitive as lib only contains object files while all also contains executable.

Right now the above all target is not used at all. The top-level GeosCore/Makefile only goes to lib:

libhemco:                                          # Build code in HEMCO/*
	@$(MAKE) -C $(HEMCO) lib

So, hemco_standalone.x will not be compiled in any case, for both classic and HP.

If users do want to get hemco_standalone.x, the above unused all can be used to implement one more option, like:

hemco_standalone:                                          # Build hemco_standalone.x
	@$(MAKE) -C $(HEMCO) all

from gchp_legacy.

lizziel avatar lizziel commented on June 12, 2024

Thanks for coming up with this solution. In the past I adjusted the makefile during debugging to skip compiling the HEMCO standalone since it is indeed not used. It makes sense to make this the default. I will keep this issue open until we put it into an upcoming version and test it.

from gchp_legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.