Description: Set path for openmpi 
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2020-02-16
Forwarded: no

Index: python-escript-5.6/scons/templates/sid_options.py
===================================================================
--- python-escript-5.6.orig/scons/templates/sid_options.py
+++ python-escript-5.6/scons/templates/sid_options.py
@@ -26,8 +26,13 @@ openmp = True
 
 import os
 
-d_mpi_path = '/usr/include/openmpi'
+from subprocess import check_output
+arch = check_output(['dpkg-architecture','-qDEB_HOST_MULTIARCH']).strip()
+
+
+d_mpi_path = '/usr/lib/' + arch.decode('UTF-8') + '/openmpi'
 mpi_prefix = os.path.split(os.path.realpath(d_mpi_path))[0]
+mpi_prefix = d_mpi_path
 mpi_libs = ['mpi_cxx', 'mpi']
 netcdf = 4
 #umfpack = True
