homogenizationAt array had wrong shape for MPI (too large)
This commit is contained in:
parent
8dea95879c
commit
a8b9b5d1c9
|
@ -299,7 +299,7 @@ subroutine crystallite_init
|
||||||
case ('neighboringelement') outputName ! ToDo: this is not a result, it is static. Should be written out by mesh
|
case ('neighboringelement') outputName ! ToDo: this is not a result, it is static. Should be written out by mesh
|
||||||
crystallite_outputID(o,c) = neighboringelement_ID
|
crystallite_outputID(o,c) = neighboringelement_ID
|
||||||
case default outputName
|
case default outputName
|
||||||
call IO_error(105,ext_msg=trim(str(o))//' (Crystallite)')
|
!call IO_error(105,ext_msg=trim(str(o))//' (Crystallite)')
|
||||||
end select outputName
|
end select outputName
|
||||||
enddo
|
enddo
|
||||||
enddo
|
enddo
|
||||||
|
|
|
@ -13,12 +13,7 @@ module mesh
|
||||||
implicit none
|
implicit none
|
||||||
private
|
private
|
||||||
integer(pInt), public, protected :: &
|
integer(pInt), public, protected :: &
|
||||||
mesh_Nnodes, & !< total number of nodes in mesh
|
mesh_Nnodes
|
||||||
mesh_Ncellnodes, & !< total number of cell nodes in mesh (including duplicates)
|
|
||||||
mesh_Ncells, & !< total number of cells in mesh
|
|
||||||
mesh_maxNipNeighbors, & !< max number of IP neighbors in any CP element
|
|
||||||
mesh_maxNsharedElems !< max number of CP elements sharing a node
|
|
||||||
|
|
||||||
|
|
||||||
integer(pInt), dimension(:), allocatable, private :: &
|
integer(pInt), dimension(:), allocatable, private :: &
|
||||||
microGlobal
|
microGlobal
|
||||||
|
@ -138,9 +133,8 @@ subroutine mesh_init(ip,el)
|
||||||
implicit none
|
implicit none
|
||||||
include 'fftw3-mpi.f03'
|
include 'fftw3-mpi.f03'
|
||||||
integer(C_INTPTR_T) :: devNull, local_K, local_K_offset
|
integer(C_INTPTR_T) :: devNull, local_K, local_K_offset
|
||||||
integer :: ierr, worldsize, i
|
integer :: ierr, worldsize, j
|
||||||
integer(pInt), intent(in), optional :: el, ip
|
integer(pInt), intent(in), optional :: el, ip
|
||||||
integer(pInt) :: j
|
|
||||||
logical :: myDebug
|
logical :: myDebug
|
||||||
|
|
||||||
write(6,'(/,a)') ' <<<+- mesh init -+>>>'
|
write(6,'(/,a)') ' <<<+- mesh init -+>>>'
|
||||||
|
@ -179,10 +173,10 @@ subroutine mesh_init(ip,el)
|
||||||
|
|
||||||
call theMesh%init(mesh_node)
|
call theMesh%init(mesh_node)
|
||||||
call theMesh%setNelems(product(grid(1:2))*grid3)
|
call theMesh%setNelems(product(grid(1:2))*grid3)
|
||||||
mesh_homogenizationAt = mesh_homogenizationAt(product(grid(1:2))*grid3) ! reallocate/shrink in case of MPI
|
|
||||||
mesh_maxNipNeighbors = theMesh%elem%nIPneighbors
|
|
||||||
|
|
||||||
call mesh_spectral_build_elements()
|
call mesh_spectral_build_elements()
|
||||||
|
mesh_homogenizationAt = mesh_homogenizationAt(product(grid(1:2))*grid3Offset+1: &
|
||||||
|
product(grid(1:2))*(grid3Offset+grid3)) ! reallocate/shrink in case of MPI
|
||||||
|
|
||||||
if (myDebug) write(6,'(a)') ' Built elements'; flush(6)
|
if (myDebug) write(6,'(a)') ' Built elements'; flush(6)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue