fixed small bug when calculating mesh_Ncells
This commit is contained in:
parent
103c770ee6
commit
4bc5e6717b
|
@ -610,6 +610,14 @@ subroutine mesh_init(ip,el)
|
||||||
calcMode(ip,mesh_FEasCP('elem',el)) = .true. ! first ip,el needs to be already pingponged to "calc"
|
calcMode(ip,mesh_FEasCP('elem',el)) = .true. ! first ip,el needs to be already pingponged to "calc"
|
||||||
lastMode = .true. ! and its mode is already known...
|
lastMode = .true. ! and its mode is already known...
|
||||||
|
|
||||||
|
!--------------------------------------------------------------------------------------------------
|
||||||
|
! write description file for constitutive phase output
|
||||||
|
call IO_write_jobFile(fileunit,'mesh')
|
||||||
|
write(fileunit,'(a,i)') 'maxNCellNodes ', mesh_maxNcellNodes
|
||||||
|
write(fileunit,'(a,i)') 'maxNips ', mesh_maxNips
|
||||||
|
write(fileunit,'(a,i)') 'maxNCellNodes ', mesh_maxNcpElems
|
||||||
|
close(fileunit)
|
||||||
|
|
||||||
end subroutine mesh_init
|
end subroutine mesh_init
|
||||||
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
|
@ -700,8 +708,8 @@ subroutine mesh_build_cells
|
||||||
g = FE_geomtype(t) ! get geometry type
|
g = FE_geomtype(t) ! get geometry type
|
||||||
c = FE_celltype(g) ! get cell type
|
c = FE_celltype(g) ! get cell type
|
||||||
localCellnode2globalCellnode = 0_pInt
|
localCellnode2globalCellnode = 0_pInt
|
||||||
do i = 1_pInt,FE_Nips(g) ! loop over ips=cells in this element
|
|
||||||
mesh_Ncells = mesh_Ncells + FE_Nips(g)
|
mesh_Ncells = mesh_Ncells + FE_Nips(g)
|
||||||
|
do i = 1_pInt,FE_Nips(g) ! loop over ips=cells in this element
|
||||||
do n = 1_pInt,FE_NcellnodesPerCell(c) ! loop over cell nodes in this cell
|
do n = 1_pInt,FE_NcellnodesPerCell(c) ! loop over cell nodes in this cell
|
||||||
localCellnodeID = FE_cell(n,i,g)
|
localCellnodeID = FE_cell(n,i,g)
|
||||||
if (localCellnodeID <= FE_NmatchingNodes(g)) then ! this cell node is a matching node
|
if (localCellnodeID <= FE_NmatchingNodes(g)) then ! this cell node is a matching node
|
||||||
|
@ -3815,11 +3823,11 @@ end subroutine mesh_build_sharedElems
|
||||||
!> @brief build up of IP neighborhood, allocate globals '_ipNeighborhood'
|
!> @brief build up of IP neighborhood, allocate globals '_ipNeighborhood'
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine mesh_build_ipNeighborhood
|
subroutine mesh_build_ipNeighborhood
|
||||||
|
use math, only: &
|
||||||
use math, only: math_mul3x3
|
math_mul3x3
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
integer(pInt) myElem, & ! my CP element index
|
integer(pInt) :: myElem, & ! my CP element index
|
||||||
myIP, &
|
myIP, &
|
||||||
myType, & ! my element type
|
myType, & ! my element type
|
||||||
myFace, &
|
myFace, &
|
||||||
|
@ -3986,14 +3994,16 @@ end subroutine mesh_build_ipNeighborhood
|
||||||
!> @brief write statistics regarding input file parsing to the output file
|
!> @brief write statistics regarding input file parsing to the output file
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine mesh_tell_statistics
|
subroutine mesh_tell_statistics
|
||||||
|
use math, only: &
|
||||||
use math, only: math_range
|
math_range
|
||||||
use IO, only: IO_error
|
use IO, only: &
|
||||||
use debug, only: debug_level, &
|
IO_error
|
||||||
debug_mesh, &
|
use debug, only: &
|
||||||
debug_levelBasic, &
|
debug_level, &
|
||||||
debug_levelExtensive, &
|
debug_MESH, &
|
||||||
debug_levelSelective, &
|
debug_LEVELBASIC, &
|
||||||
|
debug_LEVELEXTENSIVE, &
|
||||||
|
debug_LEVELSELECTIVE, &
|
||||||
debug_e, &
|
debug_e, &
|
||||||
debug_i
|
debug_i
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue