add patch for building sundials (#6161)

* add patch for building sundials on mac

* add upper limit on the patch
This commit is contained in:
David Gardner 2017-11-08 21:06:34 -08:00 committed by Christoph Junghans
parent 3159841e33
commit a656bc300a
2 changed files with 25 additions and 0 deletions

View file

@ -196,6 +196,13 @@ class Sundials(CMakePackage):
# Require that SuperLU_MT built with external blas
depends_on('superlu-mt+blas', when='+superlu-mt')
# ==========================================================================
# Patches
# ==========================================================================
# remove OpenMP header file and function from hypre vector test code
patch('test_nvector_parhyp.patch', when='@2.7.0:3.0.0')
# ==========================================================================
# SUNDIALS Settings
# ==========================================================================

View file

@ -0,0 +1,18 @@
--- a/examples/nvector/parhyp/test_nvector_parhyp.c
+++ b/examples/nvector/parhyp/test_nvector_parhyp.c
@@ -24,7 +24,6 @@
#include "test_nvector.h"
#include <mpi.h>
-#include <omp.h>
#if defined( SUNDIALS_HAVE_POSIX_TIMERS) && defined(_POSIX_TIMERS)
#include <time.h>
@@ -74,7 +73,6 @@ int main(int argc, char *argv[])
/* printf("\nRunning with vector length %ld \n \n", veclen); */
/* Get processor number and total number of processes */
MPI_Init(&argc, &argv);
- /* omp_set_num_threads(4); */
comm = MPI_COMM_WORLD;
MPI_Comm_size(comm, &nprocs);
MPI_Comm_rank(comm, &myid);