From 0e70f7bc8df77fa5eb521df38f956fbcf22d6510 Mon Sep 17 00:00:00 2001 From: craig-warren Date: Sun, 21 Aug 2016 17:59:44 +0100 Subject: [PATCH] Corrected single/double equals bug with OMP darwin option. --- gprMax/input_cmds_singleuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/input_cmds_singleuse.py b/gprMax/input_cmds_singleuse.py index 5e8a94cc..3f6c3367 100644 --- a/gprMax/input_cmds_singleuse.py +++ b/gprMax/input_cmds_singleuse.py @@ -62,7 +62,7 @@ def process_singlecmds(singlecmds, G): # Number of threads (OpenMP) to use cmd = '#num_threads' - if sys.platform = 'darwin': + if sys.platform == 'darwin': os.environ['OMP_WAIT_POLICY'] = 'ACTIVE' # What to do with threads when they are waiting; can drastically effect performance os.environ['OMP_DYNAMIC'] = 'FALSE' os.environ['OMP_PROC_BIND'] = 'TRUE' # Bind threads to physical cores