diff --git a/base/tools/psb_cspins.F90 b/base/tools/psb_cspins.F90 index 66e03ed9..0f5fc9df 100644 --- a/base/tools/psb_cspins.F90 +++ b/base/tools/psb_cspins.F90 @@ -73,7 +73,7 @@ subroutine psb_cspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) integer(psb_ipk_), parameter :: relocsz=200 logical :: rebuild_, local_ integer(psb_ipk_), allocatable :: ila(:),jla(:) - integer(psb_ipk_) :: i,k, ith, nth + integer(psb_ipk_) :: i,k integer(psb_lpk_) :: nnl integer(psb_lpk_), allocatable :: lila(:),ljla(:) complex(psb_spk_), allocatable :: lval(:) @@ -85,13 +85,7 @@ subroutine psb_cspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) ctxt = desc_a%get_context() call psb_info(ctxt, me, np) -#if defined(OPENMP) - nth = omp_get_num_threads() - ith = omp_get_thread_num() -#else - nth = 1 - ith = 0 -#endif + if (nz < 0) then info = 1111 call psb_errpush(info,name) diff --git a/base/tools/psb_dspins.F90 b/base/tools/psb_dspins.F90 index 2e11c511..06f913b5 100644 --- a/base/tools/psb_dspins.F90 +++ b/base/tools/psb_dspins.F90 @@ -73,7 +73,7 @@ subroutine psb_dspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) integer(psb_ipk_), parameter :: relocsz=200 logical :: rebuild_, local_ integer(psb_ipk_), allocatable :: ila(:),jla(:) - integer(psb_ipk_) :: i,k, ith, nth + integer(psb_ipk_) :: i,k integer(psb_lpk_) :: nnl integer(psb_lpk_), allocatable :: lila(:),ljla(:) real(psb_dpk_), allocatable :: lval(:) @@ -85,13 +85,7 @@ subroutine psb_dspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) ctxt = desc_a%get_context() call psb_info(ctxt, me, np) -#if defined(OPENMP) - nth = omp_get_num_threads() - ith = omp_get_thread_num() -#else - nth = 1 - ith = 0 -#endif + if (nz < 0) then info = 1111 call psb_errpush(info,name) diff --git a/base/tools/psb_sspins.F90 b/base/tools/psb_sspins.F90 index 90fa9e2d..56ef9c97 100644 --- a/base/tools/psb_sspins.F90 +++ b/base/tools/psb_sspins.F90 @@ -73,7 +73,7 @@ subroutine psb_sspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) integer(psb_ipk_), parameter :: relocsz=200 logical :: rebuild_, local_ integer(psb_ipk_), allocatable :: ila(:),jla(:) - integer(psb_ipk_) :: i,k, ith, nth + integer(psb_ipk_) :: i,k integer(psb_lpk_) :: nnl integer(psb_lpk_), allocatable :: lila(:),ljla(:) real(psb_spk_), allocatable :: lval(:) @@ -85,13 +85,7 @@ subroutine psb_sspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) ctxt = desc_a%get_context() call psb_info(ctxt, me, np) -#if defined(OPENMP) - nth = omp_get_num_threads() - ith = omp_get_thread_num() -#else - nth = 1 - ith = 0 -#endif + if (nz < 0) then info = 1111 call psb_errpush(info,name) diff --git a/base/tools/psb_zspins.F90 b/base/tools/psb_zspins.F90 index 74e2d5dc..d483f198 100644 --- a/base/tools/psb_zspins.F90 +++ b/base/tools/psb_zspins.F90 @@ -73,7 +73,7 @@ subroutine psb_zspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) integer(psb_ipk_), parameter :: relocsz=200 logical :: rebuild_, local_ integer(psb_ipk_), allocatable :: ila(:),jla(:) - integer(psb_ipk_) :: i,k, ith, nth + integer(psb_ipk_) :: i,k integer(psb_lpk_) :: nnl integer(psb_lpk_), allocatable :: lila(:),ljla(:) complex(psb_dpk_), allocatable :: lval(:) @@ -85,13 +85,7 @@ subroutine psb_zspins(nz,ia,ja,val,a,desc_a,info,rebuild,local) ctxt = desc_a%get_context() call psb_info(ctxt, me, np) -#if defined(OPENMP) - nth = omp_get_num_threads() - ith = omp_get_thread_num() -#else - nth = 1 - ith = 0 -#endif + if (nz < 0) then info = 1111 call psb_errpush(info,name)