From 9295ca7b0bfb8ea308ef480872d44748932433ae Mon Sep 17 00:00:00 2001 From: Michael Duda Date: Mon, 21 Jan 2019 15:31:51 -0700 Subject: [PATCH] Detect WRF-4.0.3 directory in arch/preamble In order for the WPS configuration to detect WRF source code that is compiled in a directory named WRF-4.0.3, the logic in the arch/preamble has been updated with an additional check. --- arch/preamble | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/preamble b/arch/preamble index 3b3fda5..5f99a47 100644 --- a/arch/preamble +++ b/arch/preamble @@ -33,12 +33,15 @@ PERL = perl RANLIB = echo # -# Look for compiled WRF code in one of several directories: WRF-4.0.2, WRF-4.0.1, WRF-4.0, WRF, and WRFV3. +# Look for compiled WRF code in one of several directories: WRF-4.0.3, WRF-4.0.2, WRF-4.0.1, WRF-4.0, WRF, and WRFV3. # The need for complicated logic to do this arises from the various names that the WRF code may take # on, depending on whether it was obtained through a GitHub archive file, as a clone of the GitHub # repository, or an older WRF v3.x tar file. # To override the path to the compiled WRF code, just set the WRF_DIR variable after the "endif" below # +ifneq ($(wildcard $(DEV_TOP)/../WRF-4.0.3), ) # Check for WRF v4.0.3 directory (probably GitHub archive) + WRF_DIR = ../WRF-4.0.3 +else ifneq ($(wildcard $(DEV_TOP)/../WRF-4.0.2), ) # Check for WRF v4.0.2 directory (probably GitHub archive) WRF_DIR = ../WRF-4.0.2 else @@ -56,6 +59,7 @@ endif endif endif endif +endif WRF_INCLUDE = -I$(WRF_DIR)/external/io_netcdf \ -- 2.11.4.GIT