mandatory N_constituents
This commit is contained in:
parent
28380c0985
commit
9550b0d8a2
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
||||||
Subproject commit ae5882a2ffd932807d7589bc375ebff01836495f
|
Subproject commit 4c9a47e76ca23cbae70d47b2ab07d1ec15e158d7
|
|
@ -1,5 +1,6 @@
|
||||||
homogenization:
|
homogenization:
|
||||||
SX:
|
SX:
|
||||||
|
N_constituents: 1
|
||||||
mech: {type: none}
|
mech: {type: none}
|
||||||
|
|
||||||
phase:
|
phase:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
homogenization:
|
homogenization:
|
||||||
SX:
|
SX:
|
||||||
|
N_constituents: 1
|
||||||
mech: {type: none}
|
mech: {type: none}
|
||||||
|
|
||||||
material:
|
material:
|
||||||
|
|
|
@ -371,8 +371,6 @@ subroutine IO_error(error_ID,el,ip,g,instance,ext_msg)
|
||||||
msg = 'write error for file:'
|
msg = 'write error for file:'
|
||||||
case (102)
|
case (102)
|
||||||
msg = 'could not read file:'
|
msg = 'could not read file:'
|
||||||
case (103)
|
|
||||||
msg = 'could not assemble input files'
|
|
||||||
case (106)
|
case (106)
|
||||||
msg = 'working directory does not exist:'
|
msg = 'working directory does not exist:'
|
||||||
|
|
||||||
|
@ -411,7 +409,7 @@ subroutine IO_error(error_ID,el,ip,g,instance,ext_msg)
|
||||||
msg = 'not enough interaction parameters given'
|
msg = 'not enough interaction parameters given'
|
||||||
|
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! errors related to the parsing of material.config
|
! errors related to the parsing of material.yaml
|
||||||
case (140)
|
case (140)
|
||||||
msg = 'key not found'
|
msg = 'key not found'
|
||||||
case (141)
|
case (141)
|
||||||
|
|
|
@ -165,7 +165,7 @@ module subroutine mech_RGC_init(num_homogMech)
|
||||||
|
|
||||||
prm%N_constituents = homogMech%get_asInts('cluster_size',requiredSize=3)
|
prm%N_constituents = homogMech%get_asInts('cluster_size',requiredSize=3)
|
||||||
if (homogenization_Ngrains(h) /= product(prm%N_constituents)) &
|
if (homogenization_Ngrains(h) /= product(prm%N_constituents)) &
|
||||||
call IO_error(211,ext_msg='clustersize (mech_rgc)')
|
call IO_error(211,ext_msg='N_constituents (mech_RGC)')
|
||||||
|
|
||||||
prm%xi_alpha = homogMech%get_asFloat('xi_alpha')
|
prm%xi_alpha = homogMech%get_asFloat('xi_alpha')
|
||||||
prm%c_alpha = homogMech%get_asFloat('c_alpha')
|
prm%c_alpha = homogMech%get_asFloat('c_alpha')
|
||||||
|
|
|
@ -51,7 +51,7 @@ module subroutine mech_isostrain_init
|
||||||
homogMech => homog%get('mech')
|
homogMech => homog%get('mech')
|
||||||
associate(prm => param(homogenization_typeInstance(h)))
|
associate(prm => param(homogenization_typeInstance(h)))
|
||||||
|
|
||||||
prm%N_constituents = homog%get_asInt('N_constituents')
|
prm%N_constituents = homogenization_Ngrains(h)
|
||||||
select case(homogMech%get_asString('mapping',defaultVal = 'sum'))
|
select case(homogMech%get_asString('mapping',defaultVal = 'sum'))
|
||||||
case ('sum')
|
case ('sum')
|
||||||
prm%mapping = parallel_ID
|
prm%mapping = parallel_ID
|
||||||
|
|
|
@ -24,7 +24,10 @@ module subroutine mech_none_init
|
||||||
print'(a,i2)', ' # instances: ',Ninstance; flush(IO_STDOUT)
|
print'(a,i2)', ' # instances: ',Ninstance; flush(IO_STDOUT)
|
||||||
|
|
||||||
do h = 1, size(homogenization_type)
|
do h = 1, size(homogenization_type)
|
||||||
if (homogenization_type(h) /= HOMOGENIZATION_NONE_ID) cycle
|
if(homogenization_type(h) /= HOMOGENIZATION_NONE_ID) cycle
|
||||||
|
|
||||||
|
if(homogenization_Ngrains(h) /= 1) &
|
||||||
|
call IO_error(211,ext_msg='N_constituents (mech_none)')
|
||||||
|
|
||||||
NofMyHomog = count(material_homogenizationAt == h)
|
NofMyHomog = count(material_homogenizationAt == h)
|
||||||
homogState(h)%sizeState = 0
|
homogState(h)%sizeState = 0
|
||||||
|
|
|
@ -256,16 +256,14 @@ subroutine material_parseHomogenization
|
||||||
do h=1, material_Nhomogenization
|
do h=1, material_Nhomogenization
|
||||||
homog => material_homogenization%get(h)
|
homog => material_homogenization%get(h)
|
||||||
homogMech => homog%get('mech')
|
homogMech => homog%get('mech')
|
||||||
|
homogenization_Ngrains(h) = homog%get_asInt('N_constituents')
|
||||||
select case (homogMech%get_asString('type'))
|
select case (homogMech%get_asString('type'))
|
||||||
case('none')
|
case('none')
|
||||||
homogenization_type(h) = HOMOGENIZATION_NONE_ID
|
homogenization_type(h) = HOMOGENIZATION_NONE_ID
|
||||||
homogenization_Ngrains(h) = 1
|
|
||||||
case('isostrain')
|
case('isostrain')
|
||||||
homogenization_type(h) = HOMOGENIZATION_ISOSTRAIN_ID
|
homogenization_type(h) = HOMOGENIZATION_ISOSTRAIN_ID
|
||||||
homogenization_Ngrains(h) = homog%get_asInt('N_constituents')
|
|
||||||
case('RGC')
|
case('RGC')
|
||||||
homogenization_type(h) = HOMOGENIZATION_RGC_ID
|
homogenization_type(h) = HOMOGENIZATION_RGC_ID
|
||||||
homogenization_Ngrains(h) = homog%get_asInt('N_constituents')
|
|
||||||
case default
|
case default
|
||||||
call IO_error(500,ext_msg=homogMech%get_asString('type'))
|
call IO_error(500,ext_msg=homogMech%get_asString('type'))
|
||||||
end select
|
end select
|
||||||
|
|
Loading…
Reference in New Issue