diff --git a/code/IO.f90 b/code/IO.f90 index 104674bb1..abae02fe5 100644 --- a/code/IO.f90 +++ b/code/IO.f90 @@ -1219,6 +1219,10 @@ endfunction msg = 'Non-positive activation energy for dislocation climb' case (233) msg = 'Non-positive relevant dislocation density' + case (234) + msg = 'Negative cutoff radius' + case (235) + msg = 'Non-positive activation energy for dislocation glide' case (240) msg = 'Non-positive Taylor factor' case (241) diff --git a/code/constitutive_nonlocal.f90 b/code/constitutive_nonlocal.f90 index a15c987fb..afc30413a 100644 --- a/code/constitutive_nonlocal.f90 +++ b/code/constitutive_nonlocal.f90 @@ -374,8 +374,8 @@ enddo enddo if (any(constitutive_nonlocal_interactionSlipSlip(1:maxval(lattice_interactionSlipSlip(:,:,myStructure)),i) < 0.0_pReal)) & call IO_error(229) - if (constitutive_nonlocal_Q0(i) <= 0.0_pReal) call IO_error(-1) - if (constitutive_nonlocal_R(i) <= 0.0_pReal) call IO_error(-1) + if (constitutive_nonlocal_Q0(i) <= 0.0_pReal) call IO_error(235) + if (constitutive_nonlocal_R(i) < 0.0_pReal) call IO_error(234) if (constitutive_nonlocal_atomicVolume(i) <= 0.0_pReal) call IO_error(230) if (constitutive_nonlocal_D0(i) <= 0.0_pReal) call IO_error(231) if (constitutive_nonlocal_Qsd(i) <= 0.0_pReal) call IO_error(232)