Merge pull request #597 from davydden/arpack
arpack: add a patch for 3.3
This commit is contained in:
		@@ -35,6 +35,10 @@ class ArpackNg(Package):
 | 
			
		||||
    variant('shared', default=True, description='Enables the build of shared libraries')
 | 
			
		||||
    variant('mpi', default=False, description='Activates MPI support')
 | 
			
		||||
 | 
			
		||||
    # The function pdlamch10 does not set the return variable. This is fixed upstream
 | 
			
		||||
    # see https://github.com/opencollab/arpack-ng/issues/34
 | 
			
		||||
    patch('pdlamch10.patch', when='@3.3:')
 | 
			
		||||
 | 
			
		||||
    depends_on('blas')
 | 
			
		||||
    depends_on('lapack')
 | 
			
		||||
    depends_on('mpi', when='+mpi')
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								var/spack/repos/builtin/packages/arpack-ng/pdlamch10.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								var/spack/repos/builtin/packages/arpack-ng/pdlamch10.patch
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
diff --git a/PARPACK/SRC/MPI/pdlamch10.f b/PARPACK/SRC/MPI/pdlamch10.f
 | 
			
		||||
index 6571da9..2882c2e 100644
 | 
			
		||||
--- a/PARPACK/SRC/MPI/pdlamch10.f
 | 
			
		||||
+++ b/PARPACK/SRC/MPI/pdlamch10.f
 | 
			
		||||
@@ -86,8 +86,8 @@
 | 
			
		||||
           TEMP = TEMP1
 | 
			
		||||
       END IF
 | 
			
		||||
 *
 | 
			
		||||
-      PDLAMCH = TEMP
 | 
			
		||||
+      PDLAMCH10 = TEMP
 | 
			
		||||
 *
 | 
			
		||||
-*     End of PDLAMCH
 | 
			
		||||
+*     End of PDLAMCH10
 | 
			
		||||
 *
 | 
			
		||||
       END
 | 
			
		||||
		Reference in New Issue
	
	Block a user