1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-07-25 20:27:35 +02:00

Start writing trexio file

This commit is contained in:
Anthony Scemama 2021-05-05 17:15:14 +02:00
parent c3890acae7
commit 5fcb287955
8 changed files with 2177 additions and 0 deletions

View File

@ -40,7 +40,11 @@ subroutine generate_fci_space
endif
t = ior(u,u-1)
t1 = t+1
IRP_IF WITHOUT_TRAILZ
t2 = shiftr((iand(not(t),t1)-1), popcnt(ieor(u,u-1)))
IRP_ELSE
t2 = shiftr((iand(not(t),t1)-1), trailz(u)+1)
IRP_ENDIF
u = ior(t1,t2)
enddo
@ -59,7 +63,11 @@ subroutine generate_fci_space
endif
t = ior(u,u-1)
t1 = t+1
IRP_IF WITHOUT_TRAILZ
t2 = shiftr((iand(not(t),t1)-1), popcnt(ieor(u,u-1)))
IRP_ELSE
t2 = shiftr((iand(not(t),t1)-1), trailz(u)+1)
IRP_ENDIF
u = ior(t1,t2)
enddo

6
devel/trexio/EZFIO.cfg Normal file
View File

@ -0,0 +1,6 @@
[backend]
type: integer
doc: Back-end used in TREXIO. 0: HDF5, 1:Text
interface: ezfio, ocaml, provider
default: 0

2
devel/trexio/LIB Normal file
View File

@ -0,0 +1,2 @@
-ltrexio

2
devel/trexio/NEED Normal file
View File

@ -0,0 +1,2 @@
ezfio_files
hartree_fock

4
devel/trexio/README.rst Normal file
View File

@ -0,0 +1,4 @@
======
trexio
======

View File

@ -0,0 +1,18 @@
program trexio
use trexio
implicit none
BEGIN_DOC
! Exports the wave function in TREXIO format
END_DOC
integer(8) :: trexio_file
integer :: rc
character*(256) :: filename
filename = trim(ezfio_work_dir)//'/trexio.h5'
! Electrons
end
! -*- mode: f90 -*-

View File

@ -0,0 +1,8 @@
BEGIN_PROVIDER [ character*(1024), trexio_filename ]
implicit none
BEGIN_DOC
! Name of the TREXIO file
END_DOC
filename = trim(ezfio_work_dir)//'/trexio.h5'
END_PROVIDER

2129
devel/trexio/trexio_f.f90 Normal file

File diff suppressed because it is too large Load Diff