From 01522cf6f2b02f34819f2d56a1a079fdb305bd35 Mon Sep 17 00:00:00 2001 From: Franz Roters Date: Sat, 2 Jun 2012 14:23:28 +0000 Subject: [PATCH] check for valid elasticity model improved error message in case of unknown elaticity/plasticity model --- code/IO.f90 | 27 +++++++++++++++++++-------- code/constitutive.f90 | 11 ++++++++++- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/code/IO.f90 b/code/IO.f90 index 87df43c5a..9cbe14a7d 100644 --- a/code/IO.f90 +++ b/code/IO.f90 @@ -866,14 +866,17 @@ end function IO_fixedIntValue pure function IO_lc(line) implicit none + character(26), parameter :: lower = 'abcdefghijklmnopqrstuvwxyz' + character(26), parameter :: upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' character(len=*), intent(in) :: line character(len=len(line)) :: IO_lc - integer :: i ! no pInt (len returns default integer) + integer :: i,n ! no pInt (len returns default integer) IO_lc = line do i=1,len(line) - if(64