Skip to content

Commit

Permalink
Fix compilation of PEXSI if in use
Browse files Browse the repository at this point in the history
  • Loading branch information
fstein93 committed Aug 13, 2024
1 parent 5378413 commit ce58667
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dm_ls_scf_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ MODULE dm_ls_scf_types

LOGICAL :: calculate_forces = .FALSE.

#if defined(__LIBPEXSI)
TYPE(lib_pexsi_env) :: pexsi
#else
TYPE(lib_pexsi_env) :: pexsi = lib_pexsi_env()
#endif

TYPE(mp_para_env_type), POINTER :: para_env => NULL()
LOGICAL :: do_pao = .FALSE.
Expand Down
4 changes: 4 additions & 0 deletions src/pexsi_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ MODULE pexsi_types
TYPE(dbcsr_csr_type) :: csr_mat_p = dbcsr_csr_type(), csr_mat_ks = dbcsr_csr_type(), &
csr_mat_s = dbcsr_csr_type(), csr_mat_E = dbcsr_csr_type(), &
csr_mat_F = dbcsr_csr_type()
#if defined(__LIBPEXSI)
TYPE(cp_pexsi_options) :: options
#else
TYPE(cp_pexsi_options) :: options = cp_pexsi_options()
#endif
REAL(KIND=dp), DIMENSION(:), POINTER :: kTS => NULL()
TYPE(dbcsr_p_type), DIMENSION(:), &
POINTER :: matrix_w => NULL()
Expand Down

0 comments on commit ce58667

Please sign in to comment.