better to read w/o cycle
This commit is contained in:
parent
ab5177e0be
commit
044b816005
|
@ -1710,10 +1710,7 @@ module subroutine plastic_nonlocal_updateCompatibility(orientation,i,e)
|
||||||
!* FREE SURFACE
|
!* FREE SURFACE
|
||||||
!* Set surface transmissivity to the value specified in the material.config
|
!* Set surface transmissivity to the value specified in the material.config
|
||||||
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = sqrt(prm%surfaceTransmissivity)
|
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = sqrt(prm%surfaceTransmissivity)
|
||||||
cycle neighbors
|
elseif (neighbor_phase /= ph) then
|
||||||
endif
|
|
||||||
|
|
||||||
if (neighbor_phase /= ph) then
|
|
||||||
!* PHASE BOUNDARY
|
!* PHASE BOUNDARY
|
||||||
!* If we encounter a different nonlocal phase at the neighbor,
|
!* If we encounter a different nonlocal phase at the neighbor,
|
||||||
!* we consider this to be a real "physical" phase boundary, so completely incompatible.
|
!* we consider this to be a real "physical" phase boundary, so completely incompatible.
|
||||||
|
@ -1721,18 +1718,12 @@ module subroutine plastic_nonlocal_updateCompatibility(orientation,i,e)
|
||||||
!* we do not consider this to be a phase boundary, so completely compatible.
|
!* we do not consider this to be a phase boundary, so completely compatible.
|
||||||
if (.not. phase_localPlasticity(neighbor_phase) .and. .not. phase_localPlasticity(ph)) &
|
if (.not. phase_localPlasticity(neighbor_phase) .and. .not. phase_localPlasticity(ph)) &
|
||||||
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = 0.0_pReal
|
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = 0.0_pReal
|
||||||
cycle neighbors
|
elseif (prm%grainboundaryTransmissivity >= 0.0_pReal) then
|
||||||
endif
|
|
||||||
|
|
||||||
if (prm%grainboundaryTransmissivity >= 0.0_pReal) then
|
|
||||||
!* GRAIN BOUNDARY !
|
!* GRAIN BOUNDARY !
|
||||||
!* fixed transmissivity for adjacent ips with different texture (only if explicitly given in material.config)
|
!* fixed transmissivity for adjacent ips with different texture (only if explicitly given in material.config)
|
||||||
if (material_texture(1,i,e) /= material_texture(1,neighbor_i,neighbor_e)) then
|
if (material_texture(1,i,e) /= material_texture(1,neighbor_i,neighbor_e) .and. &
|
||||||
if (.not. phase_localPlasticity(neighbor_phase)) then
|
(.not. phase_localPlasticity(neighbor_phase))) &
|
||||||
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = sqrt(prm%grainboundaryTransmissivity)
|
forall(s1 = 1:ns) my_compatibility(:,s1,s1,n) = sqrt(prm%grainboundaryTransmissivity)
|
||||||
endif
|
|
||||||
cycle neighbors
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
!* GRAIN BOUNDARY ?
|
!* GRAIN BOUNDARY ?
|
||||||
!* Compatibility defined by relative orientation of slip systems:
|
!* Compatibility defined by relative orientation of slip systems:
|
||||||
|
@ -1768,8 +1759,10 @@ module subroutine plastic_nonlocal_updateCompatibility(orientation,i,e)
|
||||||
my_compatibility(:,:,s1,n))
|
my_compatibility(:,:,s1,n))
|
||||||
my_compatibilitySum = my_compatibilitySum + nThresholdValues * thresholdValue
|
my_compatibilitySum = my_compatibilitySum + nThresholdValues * thresholdValue
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
where(belowThreshold) my_compatibility(1,:,s1,n) = 0.0_pReal
|
where(belowThreshold) my_compatibility(1,:,s1,n) = 0.0_pReal
|
||||||
where(belowThreshold) my_compatibility(2,:,s1,n) = 0.0_pReal
|
where(belowThreshold) my_compatibility(2,:,s1,n) = 0.0_pReal
|
||||||
|
|
||||||
enddo mySlipSystems
|
enddo mySlipSystems
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue