calculate ip coordinates only once when the first ip enters calculation mode
This commit is contained in:
parent
bdbc202c7e
commit
aec163941d
|
@ -341,6 +341,8 @@ subroutine hypela2(&
|
||||||
call debug_reset() ! resets debugging
|
call debug_reset() ! resets debugging
|
||||||
outdatedFFN1 = .false.
|
outdatedFFN1 = .false.
|
||||||
cycleCounter = cycleCounter + 1_pInt
|
cycleCounter = cycleCounter + 1_pInt
|
||||||
|
call mesh_build_subNodeCoords() ! update subnodal coordinates
|
||||||
|
call mesh_build_ipCoordinates() ! update ip coordinates
|
||||||
endif
|
endif
|
||||||
if ( outdatedByNewInc ) then
|
if ( outdatedByNewInc ) then
|
||||||
outdatedByNewInc = .false. ! reset flag
|
outdatedByNewInc = .false. ! reset flag
|
||||||
|
@ -371,10 +373,6 @@ subroutine hypela2(&
|
||||||
lastMode = calcMode(nn,cp_en) ! record calculationMode
|
lastMode = calcMode(nn,cp_en) ! record calculationMode
|
||||||
endif
|
endif
|
||||||
|
|
||||||
! marc returns nodal coordinates. So for marc we have to calculate the ip coordinates from the nodal coordinates.
|
|
||||||
call mesh_build_subNodeCoords() ! update subnodal coordinates
|
|
||||||
call mesh_build_ipCoordinates() ! update ip coordinates
|
|
||||||
|
|
||||||
call CPFEM_general(computationMode,ffn,ffn1,t(1),timinc,n(1),nn,stress,ddsdde, pstress, dPdF)
|
call CPFEM_general(computationMode,ffn,ffn1,t(1),timinc,n(1),nn,stress,ddsdde, pstress, dPdF)
|
||||||
|
|
||||||
! Mandel: 11, 22, 33, SQRT(2)*12, SQRT(2)*23, SQRT(2)*13
|
! Mandel: 11, 22, 33, SQRT(2)*12, SQRT(2)*23, SQRT(2)*13
|
||||||
|
|
Loading…
Reference in New Issue