perform sanity checks at end to catch missing parameters
This commit is contained in:
parent
592b3d043a
commit
23e2cf9aad
|
@ -186,7 +186,6 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
instance = phase_plasticityInstance(phase) ! which instance of my plasticity is present phase
|
instance = phase_plasticityInstance(phase) ! which instance of my plasticity is present phase
|
||||||
chunkPos = IO_stringPos(line)
|
chunkPos = IO_stringPos(line)
|
||||||
tag = IO_lc(IO_stringValue(line,chunkPos,1_pInt)) ! extract key
|
tag = IO_lc(IO_stringValue(line,chunkPos,1_pInt)) ! extract key
|
||||||
extmsg = trim(tag)//' ('//PLASTICITY_ISOTROPIC_label//')' ! prepare error message identifier
|
|
||||||
|
|
||||||
select case(tag)
|
select case(tag)
|
||||||
case ('(output)')
|
case ('(output)')
|
||||||
|
@ -200,7 +199,6 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
plastic_isotropic_Noutput(instance) = plastic_isotropic_Noutput(instance) + 1_pInt
|
plastic_isotropic_Noutput(instance) = plastic_isotropic_Noutput(instance) + 1_pInt
|
||||||
param(instance)%outputID (plastic_isotropic_Noutput(instance)) = strainrate_ID
|
param(instance)%outputID (plastic_isotropic_Noutput(instance)) = strainrate_ID
|
||||||
plastic_isotropic_output(plastic_isotropic_Noutput(instance),instance) = outputtag
|
plastic_isotropic_output(plastic_isotropic_Noutput(instance),instance) = outputtag
|
||||||
|
|
||||||
end select
|
end select
|
||||||
|
|
||||||
case ('/dilatation/')
|
case ('/dilatation/')
|
||||||
|
@ -208,15 +206,12 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
|
|
||||||
case ('tau0')
|
case ('tau0')
|
||||||
param(instance)%tau0 = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%tau0 = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%tau0 < 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('gdot0')
|
case ('gdot0')
|
||||||
param(instance)%gdot0 = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%gdot0 = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%gdot0 <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('n')
|
case ('n')
|
||||||
param(instance)%n = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%n = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%n <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('h0')
|
case ('h0')
|
||||||
param(instance)%h0 = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%h0 = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
|
@ -226,7 +221,6 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
|
|
||||||
case ('tausat')
|
case ('tausat')
|
||||||
param(instance)%tausat = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%tausat = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%tausat <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('tausat_sinhfita')
|
case ('tausat_sinhfita')
|
||||||
param(instance)%tausat_SinhFitA = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%tausat_SinhFitA = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
|
@ -242,15 +236,12 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
|
|
||||||
case ('a', 'w0')
|
case ('a', 'w0')
|
||||||
param(instance)%a = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%a = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%a <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('taylorfactor')
|
case ('taylorfactor')
|
||||||
param(instance)%fTaylor = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%fTaylor = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%fTaylor <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('atol_flowstress')
|
case ('atol_flowstress')
|
||||||
param(instance)%aTolFlowstress = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%aTolFlowstress = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
if (param(instance)%aTolFlowstress <= 0.0_pReal) call IO_error(211_pInt,ext_msg=extmsg)
|
|
||||||
|
|
||||||
case ('atol_shear')
|
case ('atol_shear')
|
||||||
param(instance)%aTolShear = IO_floatValue(line,chunkPos,2_pInt)
|
param(instance)%aTolShear = IO_floatValue(line,chunkPos,2_pInt)
|
||||||
|
@ -270,11 +261,21 @@ subroutine plastic_isotropic_init(fileUnit)
|
||||||
myPhase: if (phase_plasticity(phase) == PLASTICITY_isotropic_ID) then ! isolate instances of own constitutive description
|
myPhase: if (phase_plasticity(phase) == PLASTICITY_isotropic_ID) then ! isolate instances of own constitutive description
|
||||||
NipcMyPhase = count(material_phase == phase) ! number of own material points (including point components ipc)
|
NipcMyPhase = count(material_phase == phase) ! number of own material points (including point components ipc)
|
||||||
instance = phase_plasticityInstance(phase)
|
instance = phase_plasticityInstance(phase)
|
||||||
|
extmsg = ''
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! sanity checks
|
! sanity checks
|
||||||
if (param(instance)%aTolShear <= 0.0_pReal) &
|
if (param(instance)%aTolShear <= 0.0_pReal) param(instance)%aTolShear = 1.0e-6_pReal ! default absolute tolerance 1e-6
|
||||||
param(instance)%aTolShear = 1.0e-6_pReal ! default absolute tolerance 1e-6
|
if (param(instance)%tau0 < 0.0_pReal) extmsg = trim(extmsg)//' tau0'
|
||||||
|
if (param(instance)%gdot0 <= 0.0_pReal) extmsg = trim(extmsg)//' gdot0'
|
||||||
|
if (param(instance)%n <= 0.0_pReal) extmsg = trim(extmsg)//' n'
|
||||||
|
if (param(instance)%tausat <= 0.0_pReal) extmsg = trim(extmsg)//' tausat'
|
||||||
|
if (param(instance)%a <= 0.0_pReal) extmsg = trim(extmsg)//' a'
|
||||||
|
if (param(instance)%fTaylor <= 0.0_pReal) extmsg = trim(extmsg)//' taylorfactor'
|
||||||
|
if (param(instance)%aTolFlowstress <= 0.0_pReal) extmsg = trim(extmsg)//' atol_flowstress'
|
||||||
|
if (extmsg /= '') then
|
||||||
|
extmsg = trim(extmsg)//' ('//PLASTICITY_ISOTROPIC_label//')' ! prepare error message identifier
|
||||||
|
call IO_error(211_pInt,ip=instance,ext_msg=extmsg)
|
||||||
|
endif
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! Determine size of postResults array
|
! Determine size of postResults array
|
||||||
outputsLoop: do o = 1_pInt,plastic_isotropic_Noutput(instance)
|
outputsLoop: do o = 1_pInt,plastic_isotropic_Noutput(instance)
|
||||||
|
|
Loading…
Reference in New Issue