Skip to content

Commit

Permalink
Merge pull request #86 from RMGDFT/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
elbriggs authored May 21, 2023
2 parents a84b6d5 + 873d8be commit dd6217e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeCPackOptions.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(CPACK_GENERATOR "RPM")

set(CPACK_PACKAGE_VERSION_MAJOR "5")
set(CPACK_PACKAGE_VERSION_MINOR "3")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
set(CPACK_PACKAGE_NAME "rmg")
set(CPACK_PACKAGE_RELEASE 1)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ set(CPACK_GENERATOR "RPM")

set(CPACK_PACKAGE_VERSION_MAJOR "5")
set(CPACK_PACKAGE_VERSION_MINOR "3")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(COMPLETE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
set(CPACK_PACKAGE_NAME "rmg")
set(CPACK_PACKAGE_RELEASE 1)
Expand Down
4 changes: 2 additions & 2 deletions RMG/Common/Init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ template <typename OrbitalType> void Init (double * vh, double * rho, double * r
}
else
{
if((ct.subdiag_driver == SUBDIAG_SCALAPACK) || (ct.subdiag_driver == SUBDIAG_ELPA))
if(((ct.subdiag_driver == SUBDIAG_SCALAPACK) || (ct.subdiag_driver == SUBDIAG_ELPA)) && !ct.xc_is_hybrid)
InitGpuMallocHost((size_t)(ct.scalapack_block_factor+4)*(size_t)ct.init_states*sizeof(OrbitalType));
else
InitGpuMallocHost((size_t)4*(size_t)ct.max_states*(size_t)ct.max_states*sizeof(OrbitalType));
InitGpuMallocHost((size_t)4*(size_t)ct.init_states*(size_t)ct.init_states*sizeof(OrbitalType));
}

// Wavefunctions are actually stored here
Expand Down

0 comments on commit dd6217e

Please sign in to comment.