diff --git a/CMakeLists.txt b/CMakeLists.txt index b0d102d7705f83f0ed74f5e14afab802428b6b2a..4dbd384aae8f2fc1b82f3700f7da8a629a659ce3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,11 +43,11 @@ add_custom_target(spm_headers_tgt DEPENDS ${spm_headers} ) set_source_files_properties( - spm/spm.c + spm.c PROPERTIES DEPENDS spm_headers_tgt ) set(PASTIX_LIB_SRCS ${PASTIX_LIB_SRCS} ${spm_sources} - ) \ No newline at end of file + ) diff --git a/z_spm_genrhs.c b/z_spm_genrhs.c index f0f6ee1986dbf81fe2e9f1f8a74e499bb503894e..dc099b0e6feae731fa52cf98260f4bca981c9c38 100644 --- a/z_spm_genrhs.c +++ b/z_spm_genrhs.c @@ -374,7 +374,9 @@ z_spmCheckAxb( int nrhs, */ if ( x0 != NULL ) { normX0 = LAPACKE_zlange( LAPACK_COL_MAJOR, 'I', spm->n, nrhs, x0, ldx0 ); - core_zgeadd( PastixNoTrans, spm->n, nrhs, -1., x, ldx, x0, ldx0 ); + core_zgeadd( PastixNoTrans, spm->n, nrhs, + -1., x, ldx, + 1., x0, ldx0 ); normR = LAPACKE_zlange( LAPACK_COL_MAJOR, 'I', spm->n, nrhs, x0, ldx0 ); forward = normR / normX0;