Skip to content

Commit

Permalink
Merge branch '250-read-in-with-dollar-symbol-not-working-with-load-ba…
Browse files Browse the repository at this point in the history
…lancing' into 'master.dev'

[250-read-in-with-dollar-...] Resolve "Read-in with dollar symbol not working with load balancing"

Closes #250

See merge request piclas/piclas!906
  • Loading branch information
pnizenkov committed May 29, 2024
2 parents 932cc0d + c642490 commit 7f5b947
Show file tree
Hide file tree
Showing 4 changed files with 385 additions and 82 deletions.
16 changes: 1 addition & 15 deletions src/particles/particle_operations.f90
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ SUBROUTINE RemoveParticle(PartID,BCID,alpha,crossedBC)
USE MOD_HDG_Vars ,ONLY: UseFPC,FPC,UseEPC,EPC
USE MOD_Mesh_Vars ,ONLY: BoundaryType
#endif /*USE_HDG*/
USE MOD_Particle_Vars ,ONLY: PartState!, LastPartPos
!USE MOD_Particle_Mesh_Vars ,ONLY: GEO
USE MOD_Particle_Vars ,ONLY: PartState
!----------------------------------------------------------------------------------------------------------------------------------!
IMPLICIT NONE
! INPUT / OUTPUT VARIABLES
Expand Down Expand Up @@ -301,19 +300,6 @@ SUBROUTINE RemoveParticle(PartID,BCID,alpha,crossedBC)
END IF ! BCType.EQ.8
END IF ! UseEPC
#endif /*USE_HDG*/

! ! Debugging: Move particles that impact the left BC to a specific location
! IF(TRIM(BoundaryName(PartBound%MapToFieldBC(BCID))).EQ.'BC_LEFT')THEN
! PartSpecies(PartID) = 3
! PDM%ParticleInside(PartID) = .TRUE.
! PartState(1,PartID) = -9e-9
! LastPartPos(1,PartID) = PartState(1,PartID)
! CALL RANDOM_NUMBER(RandVal)
! PartState(2,PartID) = RandVal(1)*(GEO%zmaxglob-GEO%zminglob) + GEO%zminglob
! PartState(3,PartID) = RandVal(2)*(GEO%ymaxglob-GEO%yminglob) + GEO%yminglob
! LastPartPos(2:3,PartID) = PartState(2:3,PartID)
! PartState(4:6,PartID) = (/0., 0., 0./)
! END IF ! TRIM(BoundaryName(PartBound%MapToFieldBC(BCID))).EQ.'BC_LEFT'
END IF ! PRESENT(BCID)

! Tracking-relevant variables (not required if a particle is removed within the domain, e.g. removal due to radial weighting)
Expand Down
Loading

0 comments on commit 7f5b947

Please sign in to comment.