remove omp statements during initialization, "line" for reading in from material.config now has a default (empty) value to prevent conditional jump depend on this value
This commit is contained in:
parent
4eaa97b33c
commit
093cf92338
|
@ -148,14 +148,12 @@ integer(pInt) :: section, maxNinstance,mySize,myStructure,maxTotalNslip,maxTotal
|
||||||
f,i,j,k,l,m,n,o,p,q,r,s,ns,nt, &
|
f,i,j,k,l,m,n,o,p,q,r,s,ns,nt, &
|
||||||
index_myFamily, index_otherFamily
|
index_myFamily, index_otherFamily
|
||||||
character(len=64) tag
|
character(len=64) tag
|
||||||
character(len=1024) line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
write(6,*)
|
||||||
write(6,*)
|
write(6,*) '<<<+- constitutive_',trim(constitutive_dislotwin_label),' init -+>>>'
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_dislotwin_label),' init -+>>>'
|
write(6,*) '$Id$'
|
||||||
write(6,*) '$Id$'
|
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(phase_plasticity == constitutive_dislotwin_label),pInt)
|
maxNinstance = int(count(phase_plasticity == constitutive_dislotwin_label),pInt)
|
||||||
if (maxNinstance == 0_pInt) return
|
if (maxNinstance == 0_pInt) return
|
||||||
|
|
|
@ -129,23 +129,19 @@ subroutine constitutive_j2_init(myFile)
|
||||||
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
||||||
integer(pInt) :: section = 0_pInt, maxNinstance, i,j,k,o, mySize
|
integer(pInt) :: section = 0_pInt, maxNinstance, i,j,k,o, mySize
|
||||||
character(len=64) :: tag
|
character(len=64) :: tag
|
||||||
character(len=1024) :: line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_j2_label),' init -+>>>'
|
write(6,*) '<<<+- constitutive_',trim(constitutive_j2_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(phase_plasticity == constitutive_j2_label),pInt)
|
maxNinstance = int(count(phase_plasticity == constitutive_j2_label),pInt)
|
||||||
if (maxNinstance == 0_pInt) return
|
if (maxNinstance == 0_pInt) return
|
||||||
|
|
||||||
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
||||||
write(6,*)
|
write(6,*)
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
allocate(constitutive_j2_sizeDotState(maxNinstance))
|
allocate(constitutive_j2_sizeDotState(maxNinstance))
|
||||||
|
|
|
@ -109,23 +109,19 @@ subroutine constitutive_none_init(myFile)
|
||||||
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
||||||
integer(pInt) :: section = 0_pInt, maxNinstance, i,j,k, mySize, myStructure
|
integer(pInt) :: section = 0_pInt, maxNinstance, i,j,k, mySize, myStructure
|
||||||
character(len=64) :: tag
|
character(len=64) :: tag
|
||||||
character(len=1024) :: line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_none_label),' init -+>>>'
|
write(6,*) '<<<+- constitutive_',trim(constitutive_none_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(phase_plasticity == constitutive_none_label),pInt)
|
maxNinstance = int(count(phase_plasticity == constitutive_none_label),pInt)
|
||||||
if (maxNinstance == 0_pInt) return
|
if (maxNinstance == 0_pInt) return
|
||||||
|
|
||||||
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
||||||
write(6,*)
|
write(6,*)
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
allocate(constitutive_none_sizeDotState(maxNinstance))
|
allocate(constitutive_none_sizeDotState(maxNinstance))
|
||||||
|
|
|
@ -266,23 +266,18 @@ integer(pInt) section, &
|
||||||
it, & ! index of my interaction type
|
it, & ! index of my interaction type
|
||||||
mySize
|
mySize
|
||||||
character(len=64) tag
|
character(len=64) tag
|
||||||
character(len=1024) line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_nonlocal_label),' init -+>>>'
|
write(6,*) '<<<+- constitutive_',trim(constitutive_nonlocal_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(phase_plasticity == constitutive_nonlocal_label),pInt)
|
maxNinstance = int(count(phase_plasticity == constitutive_nonlocal_label),pInt)
|
||||||
if (maxNinstance == 0) return ! we don't have to do anything if there's no instance for this constitutive law
|
if (maxNinstance == 0) return ! we don't have to do anything if there's no instance for this constitutive law
|
||||||
|
|
||||||
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -142,23 +142,19 @@ subroutine constitutive_phenopowerlaw_init(myFile)
|
||||||
integer(pInt) section, maxNinstance, i,j,k, f,o, &
|
integer(pInt) section, maxNinstance, i,j,k, f,o, &
|
||||||
mySize, myStructure, index_myFamily, index_otherFamily
|
mySize, myStructure, index_myFamily, index_otherFamily
|
||||||
character(len=64) :: tag
|
character(len=64) :: tag
|
||||||
character(len=1024) :: line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_phenopowerlaw_label),' init -+>>>'
|
write(6,*) '<<<+- constitutive_',trim(constitutive_phenopowerlaw_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(phase_plasticity == constitutive_phenopowerlaw_label),pInt)
|
maxNinstance = int(count(phase_plasticity == constitutive_phenopowerlaw_label),pInt)
|
||||||
if (maxNinstance == 0) return
|
if (maxNinstance == 0) return
|
||||||
|
|
||||||
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0_pInt) then
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
write(6,'(a16,1x,i5)') '# instances:',maxNinstance
|
||||||
write(6,*)
|
write(6,*)
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
endif
|
endif
|
||||||
allocate(constitutive_phenopowerlaw_sizeDotState(maxNinstance))
|
allocate(constitutive_phenopowerlaw_sizeDotState(maxNinstance))
|
||||||
constitutive_phenopowerlaw_sizeDotState = 0_pInt
|
constitutive_phenopowerlaw_sizeDotState = 0_pInt
|
||||||
|
|
|
@ -252,7 +252,7 @@ integer(pInt) :: section,f,i,j,k,l,m,n,o,p,q,r,s,s1,s2,t,t1,t2,ns,nt,&
|
||||||
mySize = 0_pInt,myStructure,maxTotalNslip,maxTotalNtwin
|
mySize = 0_pInt,myStructure,maxTotalNslip,maxTotalNtwin
|
||||||
integer :: maxNinstance !no pInt
|
integer :: maxNinstance !no pInt
|
||||||
character(len=64) :: tag
|
character(len=64) :: tag
|
||||||
character(len=1024) :: line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- constitutive_',trim(constitutive_titanmod_label),' init -+>>>'
|
write(6,*) '<<<+- constitutive_',trim(constitutive_titanmod_label),' init -+>>>'
|
||||||
|
|
|
@ -87,14 +87,12 @@ subroutine homogenization_RGC_init(&
|
||||||
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
integer(pInt), dimension(1_pInt+2_pInt*maxNchunks) :: positions
|
||||||
integer(pInt) section, maxNinstance, i,j,e, output, mySize, myInstance
|
integer(pInt) section, maxNinstance, i,j,e, output, mySize, myInstance
|
||||||
character(len=64) tag
|
character(len=64) tag
|
||||||
character(len=1024) line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- homogenization_',trim(homogenization_RGC_label),' init -+>>>'
|
write(6,*) '<<<+- homogenization_',trim(homogenization_RGC_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = int(count(homogenization_type == homogenization_RGC_label),pInt)
|
maxNinstance = int(count(homogenization_type == homogenization_RGC_label),pInt)
|
||||||
if (maxNinstance == 0) return
|
if (maxNinstance == 0) return
|
||||||
|
|
|
@ -75,14 +75,14 @@ subroutine homogenization_isostrain_init(myFile) ! fil
|
||||||
integer(pInt) section, i, j, output, mySize
|
integer(pInt) section, i, j, output, mySize
|
||||||
integer :: maxNinstance, k !no pInt (stores a system dependen value from 'count'
|
integer :: maxNinstance, k !no pInt (stores a system dependen value from 'count'
|
||||||
character(len=64) :: tag
|
character(len=64) :: tag
|
||||||
character(len=1024) :: line
|
character(len=1024) :: line = '' ! to start initialized
|
||||||
|
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*)
|
write(6,*)
|
||||||
write(6,*) '<<<+- homogenization_',trim(homogenization_isostrain_label),' init -+>>>'
|
write(6,*) '<<<+- homogenization_',trim(homogenization_isostrain_label),' init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
maxNinstance = count(homogenization_type == homogenization_isostrain_label)
|
maxNinstance = count(homogenization_type == homogenization_isostrain_label)
|
||||||
if (maxNinstance == 0) return
|
if (maxNinstance == 0) return
|
||||||
|
|
|
@ -273,12 +273,10 @@ subroutine math_init
|
||||||
! comment the first random_seed call out, set randSize to 1, and use ifort
|
! comment the first random_seed call out, set randSize to 1, and use ifort
|
||||||
character(len=64) :: error_msg
|
character(len=64) :: error_msg
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*) ''
|
write(6,*) ''
|
||||||
write(6,*) '<<<+- math init -+>>>'
|
write(6,*) '<<<+- math init -+>>>'
|
||||||
write(6,*) '$Id$'
|
write(6,*) '$Id$'
|
||||||
#include "compilation_info.f90"
|
#include "compilation_info.f90"
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
call random_seed(size=randSize)
|
call random_seed(size=randSize)
|
||||||
if (allocated(randInit)) deallocate(randInit)
|
if (allocated(randInit)) deallocate(randInit)
|
||||||
|
@ -297,14 +295,12 @@ subroutine math_init
|
||||||
call random_number(randTest(i))
|
call random_number(randTest(i))
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
!$OMP CRITICAL (write2out)
|
|
||||||
write(6,*) 'size of random seed: ', randSize
|
write(6,*) 'size of random seed: ', randSize
|
||||||
do i =1, randSize
|
do i =1, randSize
|
||||||
write(6,*) 'value of random seed: ', i, randInit(i)
|
write(6,*) 'value of random seed: ', i, randInit(i)
|
||||||
enddo
|
enddo
|
||||||
write(6,'(a,4(/,26x,f17.14))') ' start of random sequence: ', randTest
|
write(6,'(a,4(/,26x,f17.14))') ' start of random sequence: ', randTest
|
||||||
write(6,*) ''
|
write(6,*) ''
|
||||||
!$OMP END CRITICAL (write2out)
|
|
||||||
|
|
||||||
call random_seed(put = randInit)
|
call random_seed(put = randInit)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue