Skip to content
Snippets Groups Projects

Fix some Maxwell couplings with MPI

Merged Franco Bonafé requested to merge fix_quadrupole_mpi into main
All threads resolved!
3 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -1289,6 +1289,10 @@ contains
@@ -1289,6 +1289,10 @@ contains
PUSH_SUB(hamiltonian_elec_update_pot)
PUSH_SUB(hamiltonian_elec_update_pot)
 
if (this%mxll%test_equad) then
 
call set_electric_quadrupole_pot(this%mxll, mesh)
 
end if
 
!$omp parallel private(ip, ispin)
!$omp parallel private(ip, ispin)
do ispin = 1, this%d%nspin
do ispin = 1, this%d%nspin
if (ispin <= 2) then
if (ispin <= 2) then
@@ -1355,7 +1359,6 @@ contains
@@ -1355,7 +1359,6 @@ contains
! Adding Quadrupole potential from static E-field (test)
! Adding Quadrupole potential from static E-field (test)
if (this%mxll%test_equad) then
if (this%mxll%test_equad) then
call set_electric_quadrupole_pot(this%mxll, mesh)
!$omp do simd schedule(static)
!$omp do simd schedule(static)
do ip = 1, mesh%np
do ip = 1, mesh%np
this%hm_base%potential(ip, ispin) = this%hm_base%potential(ip, ispin) + this%mxll%e_quadrupole_pot(ip)
this%hm_base%potential(ip, ispin) = this%hm_base%potential(ip, ispin) + this%mxll%e_quadrupole_pot(ip)
Loading