9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 03:23:29 +01:00
qp2/src/cipsi/environment.irp.f

17 lines
374 B
Fortran
Raw Normal View History

2019-01-25 11:39:31 +01:00
BEGIN_PROVIDER [ integer, nthreads_pt2 ]
implicit none
BEGIN_DOC
! Number of threads for Davidson
END_DOC
nthreads_pt2 = nproc
character*(32) :: env
call getenv('QP_NTHREADS_PT2',env)
if (trim(env) /= '') then
2023-04-17 17:03:16 +02:00
call lock_io()
2019-01-25 11:39:31 +01:00
read(env,*) nthreads_pt2
2023-04-17 17:03:16 +02:00
call unlock_io()
2019-01-25 11:39:31 +01:00
call write_int(6,nthreads_pt2,'Target number of threads for PT2')
endif
END_PROVIDER