introduced error 667 for out of bounds user result requesting

This commit is contained in:
Philip Eisenlohr 2011-05-04 16:02:18 +00:00
parent 2fa4a344b9
commit 660c9212f8
2 changed files with 6 additions and 1 deletions

View File

@ -1323,6 +1323,8 @@ endfunction
case (666)
msg = 'Memory leak detected'
case (667)
msg = 'Invalid materialpoint result requested'
case (670)
msg = 'math_check: quat -> axisAngle -> quat failed'

View File

@ -392,13 +392,16 @@ subroutine plotv(&
)
use prec, only: pReal,pInt
use mesh, only: mesh_FEasCP
use homogenization, only: materialpoint_results
use IO, only: IO_error
use homogenization, only: materialpoint_results,materialpoint_sizeResults
implicit none
real(pReal) s(*),etot(*),eplas(*),ecreep(*),sp(*)
real(pReal) v, t(*)
integer(pInt) m, nn, layer, ndi, nshear, jpltcd
if (jpltcd > materialpoint_sizeResults) IO_error(667,jpltcd) ! complain about out of bounds error
v = materialpoint_results(jpltcd,nn,mesh_FEasCP('elem', m))
return