From 2e6170594f564c918262779931f045886a80ac52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Andr=C3=A9=20Reuter?= Date: Tue, 12 Nov 2024 23:48:20 +0100 Subject: [PATCH] QuantumESPRESSO: Let internal EasyBlock not create a log file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the increased memory usage when running the EasyConfig test suite as log files would stay open. Signed-off-by: Jan André Reuter --- easybuild/easyblocks/q/quantumespresso.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easybuild/easyblocks/q/quantumespresso.py b/easybuild/easyblocks/q/quantumespresso.py index 162abde86b..d5607d1581 100644 --- a/easybuild/easyblocks/q/quantumespresso.py +++ b/easybuild/easyblocks/q/quantumespresso.py @@ -28,6 +28,7 @@ @author: Kenneth Hoste (Ghent University) @author: Ake Sandgren (HPC2N, Umea University) @author: Davide Grassano (CECAM, EPFL) +@author: Jan Reuter (Juelich Supercomputing Centre) """ import fileinput @@ -84,6 +85,8 @@ def __init__(self, ec, *args, **kwargs): # Required to avoid CMakeMake default extra_opts to override the ConfigMake ones new_ec = EasyConfig(ec.path, extra_options=eb.extra_options()) + # Disable log file for nested EasyBlock + kwargs['logfile'] = self.logfile self.ebclass = eb(new_ec, *args, **kwargs) class EB_QuantumESPRESSOcmake(CMakeMake):