corrected wrong integer arithmetics in calculation of coordinates in DAMASK_spectral.f90
This commit is contained in:
parent
99f2b8603a
commit
e33c34d86b
|
@ -535,12 +535,12 @@ program DAMASK_spectral
|
||||||
ielem = ielem + 1_pInt
|
ielem = ielem + 1_pInt
|
||||||
F(i,j,k,1:3,1:3) = math_I3
|
F(i,j,k,1:3,1:3) = math_I3
|
||||||
F_lastInc(i,j,k,1:3,1:3) = math_I3
|
F_lastInc(i,j,k,1:3,1:3) = math_I3
|
||||||
coordinates(i,j,k,1:3) = geomdim/real(res * [i,j,k], pReal) - geomdim/real(2_pInt*res,pReal)
|
coordinates(i,j,k,1:3) = geomdim/real(res,pReal)*real([i,j,k],pReal) - geomdim/real(2_pInt*res,pReal)
|
||||||
call CPFEM_general(2_pInt,coordinates(i,j,k,1:3),math_I3,math_I3,temperature(i,j,k),&
|
call CPFEM_general(2_pInt,coordinates(i,j,k,1:3),math_I3,math_I3,temperature(i,j,k),&
|
||||||
0.0_pReal,ielem,1_pInt,sigma,dsde,P_real(i,j,k,1:3,1:3),dPdF)
|
0.0_pReal,ielem,1_pInt,sigma,dsde,P_real(i,j,k,1:3,1:3),dPdF)
|
||||||
C = C + dPdF
|
C = C + dPdF
|
||||||
enddo; enddo; enddo
|
enddo; enddo; enddo
|
||||||
C_ref = C * wgt ! linear reference material stiffness
|
C_ref = C * wgt
|
||||||
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! calculate the gamma operator
|
! calculate the gamma operator
|
||||||
|
|
|
@ -300,6 +300,7 @@ subroutine IO_write_jobBinaryFile(myUnit,newExt,recMultiplier)
|
||||||
open(myUnit,status='replace',form='unformatted',access='direct', &
|
open(myUnit,status='replace',form='unformatted',access='direct', &
|
||||||
recl=pReal,iostat=myStat,file=path)
|
recl=pReal,iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_write_jobBinaryFile
|
end subroutine IO_write_jobBinaryFile
|
||||||
|
|
Loading…
Reference in New Issue