I have to change the init of the edges to include the EM boundaries now
This commit is contained in:
parent
4c72e68246
commit
0379ea42c2
3 changed files with 32 additions and 11 deletions
|
|
@ -4,18 +4,20 @@ submodule(moduleMesh) boundaryEM
|
|||
implicit none
|
||||
|
||||
class(boundaryEMGeneric), intent(inout):: self
|
||||
type(meshNodePointer), intent(in):: nodes(:)
|
||||
INTEGER:: n, nn, nNodes
|
||||
integer, intent(in):: nodes(:)
|
||||
integer:: n, nn, nNodes
|
||||
logical:: inArray
|
||||
type(meshNodePointer):: nodeToAdd
|
||||
|
||||
|
||||
nNodes = size(nodes)
|
||||
! Collect all nodes that are not already in the boundary
|
||||
DO n = 1, nNodes
|
||||
nodeToAdd%obj => mesh%nodes(nodes(n))%obj
|
||||
inArray = .false.
|
||||
! I cannot use the procedure 'any' for this
|
||||
do nn = 1 , size(self%nodes)
|
||||
IF (self%nodes(nn) == nodes(n)) THEN
|
||||
IF (self%nodes(nn) == nodeToAdd) THEN
|
||||
! Node already in array
|
||||
inArray = .true.
|
||||
exit
|
||||
|
|
@ -26,7 +28,7 @@ submodule(moduleMesh) boundaryEM
|
|||
|
||||
if (.not. inArray) then
|
||||
! If not, add element to array of nodes
|
||||
self%nodes = [self%nodes, nodes(n)]
|
||||
self%nodes = [self%nodes, nodeToAdd]
|
||||
|
||||
end if
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue