modifying the criteria for the sum of microstructure fraction.
previously was: if (the_sum /= 1.0_pReal) then (error 170) this condition is too strict. it may give problem with some numerical truncation error. now becomes: if (abs(the_sum - 1.0_pReal) >= 1.0e-10_pReal) then (error 170)
This commit is contained in:
parent
59d22d47b2
commit
1bf3b978eb
|
@ -93,7 +93,10 @@ subroutine material_init()
|
||||||
maxval(microstructure_phase(1:microstructure_Nconstituents(i),i)) > material_Nphase) call IO_error(150,i)
|
maxval(microstructure_phase(1:microstructure_Nconstituents(i),i)) > material_Nphase) call IO_error(150,i)
|
||||||
if (minval(microstructure_texture(1:microstructure_Nconstituents(i),i)) < 1 .or. &
|
if (minval(microstructure_texture(1:microstructure_Nconstituents(i),i)) < 1 .or. &
|
||||||
maxval(microstructure_texture(1:microstructure_Nconstituents(i),i)) > material_Ntexture) call IO_error(160,i)
|
maxval(microstructure_texture(1:microstructure_Nconstituents(i),i)) > material_Ntexture) call IO_error(160,i)
|
||||||
if (sum(microstructure_fraction(:,i)) /= 1.0_pReal) call IO_error(170,i)
|
if (abs(sum(microstructure_fraction(:,i)) - 1.0_pReal) >= 1.0e-10_pReal) then
|
||||||
|
write(6,*)'sum of microstructure fraction = ',sum(microstructure_fraction(:,i))
|
||||||
|
call IO_error(170,i)
|
||||||
|
endif
|
||||||
enddo
|
enddo
|
||||||
write (6,*)
|
write (6,*)
|
||||||
write (6,*) 'MATERIAL configuration'
|
write (6,*) 'MATERIAL configuration'
|
||||||
|
|
Loading…
Reference in New Issue