Skip to content

Commit

Permalink
Replaced std::get by get.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierandrade committed Dec 11, 2024
1 parent 3ea6669 commit d70ccc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/hamiltonian/xc_term.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ using namespace inq;
template<class occupations_array_type, class field_set_type, typename VxcType>
void compute_psi_vxc_psi_ofr(occupations_array_type const & occupations, field_set_type const & phi, VxcType const & vxc, basis::field<basis::real_space, double> & rfield) {

assert(std::get<1>(sizes(phi.spinor_array())) == phi.spinor_dim());
assert(std::get<2>(sizes(phi.spinor_array())) == phi.local_spinor_set_size());
assert(get<1>(sizes(phi.spinor_array())) == phi.spinor_dim());
assert(get<2>(sizes(phi.spinor_array())) == phi.local_spinor_set_size());

if (vxc.set_size() == 1) {
gpu::run(phi.local_spinor_set_size(), phi.basis().local_size(),
Expand Down
6 changes: 3 additions & 3 deletions src/hamiltonian/zeeman_coupling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ using namespace inq;
template<class occupations_array_type, class field_set_type, typename VZType, typename RFType>
void compute_psi_vz_psi_ofr(occupations_array_type const & occupations, field_set_type const & phi, VZType const & zeeman_pot, RFType & rfield) {

assert(std::get<1>(sizes(phi.spinor_array())) == phi.spinor_dim());
assert(std::get<2>(sizes(phi.spinor_array())) == phi.local_spinor_set_size());
assert(get<1>(sizes(phi.spinor_array())) == phi.spinor_dim());
assert(get<2>(sizes(phi.spinor_array())) == phi.local_spinor_set_size());

if (zeeman_pot.set_size() == 2){
gpu::run(phi.local_set_size(), phi.basis().local_size(),
Expand Down Expand Up @@ -298,4 +298,4 @@ TEST_CASE(INQ_TEST_FILE, INQ_TEST_TAG) {
CHECK(zeeman_ener2 == target7);
}
}
#endif
#endif

0 comments on commit d70ccc2

Please sign in to comment.