Skip to content

Commit

Permalink
[skip ci] Generalize little.
Browse files Browse the repository at this point in the history
  • Loading branch information
raback committed Dec 18, 2024
1 parent 2b1caff commit 36c2020
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fem/src/modules/MagnetoDynamics/Utils.F90
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ SUBROUTINE GaugeTree(Solver,Mesh,TreeEdges,FluxCount,FluxMap,Transient)
INTEGER :: i,j,k,l,n,Start
LOGICAL, ALLOCATABLE :: Done(:), CondReg(:)
TYPE(ValueList_t), POINTER :: BC
REAL(KIND=dp) :: Cond1
REAL(KIND=dp) :: Cond1, NodalCond(27)
TYPE(Element_t), POINTER :: Edge, Boundary, Element

INTEGER, ALLOCATABLE :: r_e(:), s_e(:,:), iperm(:)
Expand Down Expand Up @@ -825,8 +825,10 @@ SUBROUTINE GaugeTree(Solver,Mesh,TreeEdges,FluxCount,FluxMap,Transient)
condReg = .TRUE.
DO i=1,GetNOFActive()
Element => GetActiveElement(i)
Cond1 = GetCReal(GetMaterial(), 'Electric Conductivity',Found)
IF (cond1==0) condReg(Element % NodeIndexes) = .FALSE.
n = Element % Type % NumberOfNodes
NodalCond(1:n) = GetReal(GetMaterial(), 'Electric Conductivity',Found)
cond1 = MAXVAL(NodalCond(1:n))
IF (cond1 < EPSILON(cond1) ) condReg(Element % NodeIndexes) = .FALSE.
END DO

CALL CommunicateCondReg(Solver,Mesh,CondReg)
Expand Down

0 comments on commit 36c2020

Please sign in to comment.