From 536b8794e6f6fffa974f33096f558fcce1241c97 Mon Sep 17 00:00:00 2001 From: TopRichard Date: Mon, 18 Sep 2023 14:03:49 +0000 Subject: [PATCH] modified the WRF-hook --- eb_hooks.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eb_hooks.py b/eb_hooks.py index 9f6c60039d..23edd32a50 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -253,15 +253,13 @@ def pre_configure_hook_wrf_aarch64(self, *args, **kwargs): if self.name == 'WRF': wrfversion = int((self.version).replace(".","")) if get_cpu_architecture() == AARCH64: + pattern = "Linux x86_64 ppc64le, gfortran" + repl = "Linux x86_64 aarch64 ppc64le, gfortran" if wrfversion <= 39: - pattern = "Linux x86_64 ppc64le, gfortran" - repl = "Linux x86_64 aarch64 ppc64le, gfortran" self.cfg.update('preconfigopts', "sed -i 's/%s/%s/g' arch/configure_new.defaults && " % (pattern, repl)) print_msg("Using custom preconfigopts for %s: %s", self.name, self.cfg['preconfigopts']) if 400 <= wrfversion <= 421: - pattern = "Linux x86_64 ppc64le, gfortran" - repl = "Linux x86_64 aarch64 ppc64le, gfortran" self.cfg.update('preconfigopts', "sed -i 's/%s/%s/g' arch/configure.defaults && " % (pattern, repl)) print_msg("Using custom preconfigopts for %s: %s", self.name, self.cfg['preconfigopts']) else: