From d31de600982edc7955a6611e2411868df094ae41 Mon Sep 17 00:00:00 2001 From: adrifoster Date: Mon, 21 Aug 2023 12:07:33 -0600 Subject: [PATCH 1/3] simple fix --- cime_config/buildlib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cime_config/buildlib b/cime_config/buildlib index 965836cf..d62fa4e0 100755 --- a/cime_config/buildlib +++ b/cime_config/buildlib @@ -180,8 +180,8 @@ def buildlib(bldroot, libroot, case): # Do not allow any warnings except from fox external nextline = "" for line in e.split("\n"): - if "F90" in line and not "fox" in line: - nextline.append(line) + if "f90" in line.lower() and not "fox" in line.lower(): + nextline = nextline + line if len(nextline) > 0: expect(False, nextline) From 8b7bb12fb24e2c08ee701144d8791024388d6529 Mon Sep 17 00:00:00 2001 From: adrifoster Date: Mon, 21 Aug 2023 12:21:12 -0600 Subject: [PATCH 2/3] make a little nicer --- cime_config/buildlib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cime_config/buildlib b/cime_config/buildlib index a692a4e5..6e2ee042 100755 --- a/cime_config/buildlib +++ b/cime_config/buildlib @@ -177,8 +177,8 @@ def buildlib(bldroot, libroot, case): if compiler == "gnu" and case.get_value("DEBUG"): # Do not allow any warnings except from fox external nextline = "" - for line in e.split("\n"): - if "f90" in line.lower() and not "fox" in line.lower(): + for line in e.split("\n").lower(): + if "f90" in line and not "fox" in line: nextline = nextline + line if len(nextline) > 0: expect(False, nextline) From a04df35accf9bca1ebe5b999dc3c569f488418d9 Mon Sep 17 00:00:00 2001 From: adrifoster Date: Mon, 21 Aug 2023 13:03:30 -0600 Subject: [PATCH 3/3] put back... --- cime_config/buildlib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cime_config/buildlib b/cime_config/buildlib index 6e2ee042..a692a4e5 100755 --- a/cime_config/buildlib +++ b/cime_config/buildlib @@ -177,8 +177,8 @@ def buildlib(bldroot, libroot, case): if compiler == "gnu" and case.get_value("DEBUG"): # Do not allow any warnings except from fox external nextline = "" - for line in e.split("\n").lower(): - if "f90" in line and not "fox" in line: + for line in e.split("\n"): + if "f90" in line.lower() and not "fox" in line.lower(): nextline = nextline + line if len(nextline) > 0: expect(False, nextline)