geoschem / gchp_legacy

Repository for GEOS-Chem High Performance: software that enables running GEOS-Chem on a cubed-sphere grid with MPI parallelization.
http://wiki.geos-chem.org/GEOS-Chem_HP
Other
7 stars 13 forks source link

[BUG/ISSUE] $ARCH environment variable breaks ESMF compilation #2

Closed JiaweiZhuang closed 5 years ago

JiaweiZhuang commented 5 years ago

I suggest changing this code

https://github.com/geoschem/gchp/blob/07f4130cdee6a784698b885339a54ba65ede2717/GIGC.mk#L84-L87

to: (no conditional)

ARCH := $(shell uname -s) 

or simply: (since we won't compile GCHP on non-Linux anyways)

ARCH := Linux

On some systems (e.g Amazon Linux AMI), ARCH is set to amd64, then ESMF/build/common.mk will be looking for the nonexistent amd64.gfortran.default in ESMF/build_config/. Forcing ARCH to Linux ensures that Linux.gfortran.default is always used.

The full log with incorrect ARCH for record: compile_error.log

lizziel commented 5 years ago

I think this is a good idea. I will put the update into 12.1.1. Thanks for suggesting it.