Skip to content

Commit

Permalink
Merge branch 'improvement.hdg.bc.check.info' into 'master.dev'
Browse files Browse the repository at this point in the history
[improvement.hdg.bc.check.info] Adjusted the error message when using the wrong BC types in combination with HDG load balancing.

See merge request piclas/piclas!665
  • Loading branch information
pnizenkov committed Jul 13, 2022
2 parents d4e74dd + 809af49 commit 4c96310
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mesh/prepare_mesh.f90
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ SUBROUTINE fillMeshInfo()
USE MOD_Mesh_Vars ,ONLY: nElems,offsetElem,nBCSides,nSides
USE MOD_Mesh_Vars ,ONLY: firstMortarInnerSide,lastMortarInnerSide,nMortarInnerSides,firstMortarMPISide
USE MOD_Mesh_Vars ,ONLY: ElemToSide,SideToElem,BC,AnalyzeSide,ElemToElemGlob
USE MOD_Mesh_Vars ,ONLY: MortarType,MortarInfo,MortarSlave2MasterInfo
USE MOD_Mesh_Vars ,ONLY: MortarType,MortarInfo,MortarSlave2MasterInfo,BoundaryName
#if defined(PARTICLES) || USE_HDG
USE MOD_Mesh_Vars ,ONLY: GlobalUniqueSideID
#endif /*defined(PARTICLES) || USE_HDG*/
Expand Down Expand Up @@ -846,6 +846,7 @@ SUBROUTINE fillMeshInfo()
INTEGER :: BCType,nMortars
INTEGER :: HDGSides
#endif /*USE_HDG && USE_LOADBALANCE*/
CHARACTER(3) :: hilf
!===================================================================================================================================
! Element to Side mapping
nSides_flip=0
Expand Down Expand Up @@ -1040,7 +1041,8 @@ SUBROUTINE fillMeshInfo()
CASE(10,11) !Neumann
HDGSides = HDGSides + 1
CASE DEFAULT ! unknown BCType
CALL abort(__STAMP__,'Unknown BCType for HDG Load Balancing. BCType=',IntInfoOpt=BCType)
WRITE(UNIT=hilf,FMT='(I0)') BCType
CALL abort(__STAMP__,'Unknown BCType='//TRIM(hilf)//' for '//TRIM(BoundaryName(BC(SideID)))//' (HDG Load Balancing)')
END SELECT ! BCType
ELSE
! Check for Mortars
Expand Down

0 comments on commit 4c96310

Please sign in to comment.