polishing
This commit is contained in:
parent
74927d9622
commit
56ab4f723d
|
@ -67,10 +67,8 @@ contains
|
||||||
subroutine mesh_init
|
subroutine mesh_init
|
||||||
|
|
||||||
integer, dimension(1), parameter:: FE_geomtype = [1] !< geometry type of particular element type
|
integer, dimension(1), parameter:: FE_geomtype = [1] !< geometry type of particular element type
|
||||||
|
|
||||||
integer, dimension(1) :: FE_Nips !< number of IPs in a specific type of element
|
integer, dimension(1) :: FE_Nips !< number of IPs in a specific type of element
|
||||||
|
|
||||||
|
|
||||||
integer, parameter :: FILEUNIT = 222
|
integer, parameter :: FILEUNIT = 222
|
||||||
integer :: j
|
integer :: j
|
||||||
integer, allocatable, dimension(:) :: chunkPos
|
integer, allocatable, dimension(:) :: chunkPos
|
||||||
|
@ -127,11 +125,11 @@ subroutine mesh_init
|
||||||
flag = .false.
|
flag = .false.
|
||||||
call IO_open_file(FILEUNIT,trim(geometryFile))
|
call IO_open_file(FILEUNIT,trim(geometryFile))
|
||||||
do
|
do
|
||||||
read(FILEUNIT,'(a512)') line
|
read(FILEUNIT,'(A)') line
|
||||||
if (trim(line) == IO_EOF) exit ! skip empty lines
|
if (trim(line) == IO_EOF) exit ! skip empty lines
|
||||||
if (trim(line) == '$Elements') then
|
if (trim(line) == '$Elements') then
|
||||||
read(FILEUNIT,'(a512)') line ! number of elements (ignore)
|
read(FILEUNIT,'(A)') line ! number of elements (ignore)
|
||||||
read(FILEUNIT,'(a512)') line
|
read(FILEUNIT,'(A)') line
|
||||||
flag = .true.
|
flag = .true.
|
||||||
endif
|
endif
|
||||||
if (trim(line) == '$EndElements') exit
|
if (trim(line) == '$EndElements') exit
|
||||||
|
@ -181,9 +179,7 @@ subroutine mesh_init
|
||||||
call IO_error(602,ext_msg='IP') ! selected element does not have requested IP
|
call IO_error(602,ext_msg='IP') ! selected element does not have requested IP
|
||||||
|
|
||||||
FEsolving_execElem = [ 1,mesh_NcpElems ] ! parallel loop bounds set to comprise all DAMASK elements
|
FEsolving_execElem = [ 1,mesh_NcpElems ] ! parallel loop bounds set to comprise all DAMASK elements
|
||||||
if (allocated(FEsolving_execIP)) deallocate(FEsolving_execIP)
|
FEsolving_execIP = spread([1,FE_Nips(FE_geomtype(mesh_element(2,1))),2,nElems)
|
||||||
allocate(FEsolving_execIP(2,mesh_NcpElems)); FEsolving_execIP = 1 ! parallel loop bounds set to comprise from first IP...
|
|
||||||
forall (j = 1:mesh_NcpElems) FEsolving_execIP(2,j) = FE_Nips(FE_geomtype(mesh_element(2,j))) ! ...up to own IP count for each element
|
|
||||||
|
|
||||||
allocate(mesh_node0(3,mesh_Nnodes),source=0.0_pReal)
|
allocate(mesh_node0(3,mesh_Nnodes),source=0.0_pReal)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue