mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
Fixed QP_MAXMEM
This commit is contained in:
parent
0a48b4fc36
commit
988d99a242
@ -1,3 +1,19 @@
|
||||
BEGIN_PROVIDER [ integer, qp_max_mem ]
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Maximum memory in Gb
|
||||
END_DOC
|
||||
character*(128) :: env
|
||||
|
||||
qp_max_mem = huge(1)/10
|
||||
call getenv('QP_MAXMEM',env)
|
||||
if (trim(env) /= '') then
|
||||
read(env,*) qp_max_mem
|
||||
call write_int(6,qp_max_mem,'Target maximum memory')
|
||||
endif
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
subroutine resident_memory(value)
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
|
@ -302,23 +302,6 @@ BEGIN_PROVIDER [ integer, nproc ]
|
||||
!$OMP END PARALLEL
|
||||
END_PROVIDER
|
||||
|
||||
BEGIN_PROVIDER [ integer, qp_max_mem ]
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Maximum memory in Gb
|
||||
END_DOC
|
||||
character*(128) :: env
|
||||
|
||||
qp_max_mem = huge(1_8)
|
||||
call getenv('QP_MAXMEM',env)
|
||||
if (trim(env) /= '') then
|
||||
read(env,*) qp_max_mem
|
||||
call write_int(6,qp_max_mem,'Target maximum memory')
|
||||
endif
|
||||
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
|
||||
double precision function u_dot_v(u,v,sze)
|
||||
implicit none
|
||||
|
Loading…
Reference in New Issue
Block a user