avoiding hard-coded constants
This commit is contained in:
parent
fe22b84d5c
commit
3b8dd17e5b
|
@ -55,10 +55,9 @@ contains
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine DAMASK_interface_init
|
subroutine DAMASK_interface_init
|
||||||
|
|
||||||
integer, dimension(8) :: &
|
integer, dimension(8) :: dateAndTime
|
||||||
dateAndTime
|
integer :: ierr
|
||||||
integer :: ierr
|
character(len=pPathLen) :: wd
|
||||||
character(len=1024) :: wd
|
|
||||||
|
|
||||||
write(6,'(/,a)') ' <<<+- DAMASK_marc init -+>>>'
|
write(6,'(/,a)') ' <<<+- DAMASK_marc init -+>>>'
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ module spectral_utilities
|
||||||
real(pReal), dimension(3,3) :: values = 0.0_pReal, &
|
real(pReal), dimension(3,3) :: values = 0.0_pReal, &
|
||||||
maskFloat = 0.0_pReal
|
maskFloat = 0.0_pReal
|
||||||
logical, dimension(3,3) :: maskLogical = .false.
|
logical, dimension(3,3) :: maskLogical = .false.
|
||||||
character(len=64) :: myType = 'None'
|
character(len=pStringLen) :: myType = 'None'
|
||||||
end type tBoundaryCondition
|
end type tBoundaryCondition
|
||||||
|
|
||||||
type, public :: tLoadCase
|
type, public :: tLoadCase
|
||||||
|
|
|
@ -100,8 +100,8 @@ contains
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine utilities_init
|
subroutine utilities_init
|
||||||
|
|
||||||
character(len=1024) :: petsc_optionsPhysics
|
character(len=pStringLen) :: petsc_optionsOrder
|
||||||
PetscErrorCode :: ierr
|
PetscErrorCode :: ierr
|
||||||
|
|
||||||
write(6,'(/,a)') ' <<<+- DAMASK_FEM_utilities init -+>>>'
|
write(6,'(/,a)') ' <<<+- DAMASK_FEM_utilities init -+>>>'
|
||||||
|
|
||||||
|
@ -120,8 +120,8 @@ subroutine utilities_init
|
||||||
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_defaultOptions),ierr)
|
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_defaultOptions),ierr)
|
||||||
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_options),ierr)
|
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_options),ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
write(petsc_optionsPhysics,'(a,i0)') '-mechFE_petscspace_degree ' , structOrder
|
write(petsc_optionsOrder,'(a,i0)') '-mechFE_petscspace_degree ', structOrder
|
||||||
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_optionsPhysics),ierr)
|
call PetscOptionsInsertString(PETSC_NULL_OPTIONS,trim(petsc_optionsOrder),ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
|
|
||||||
wgt = 1.0/real(mesh_maxNips*mesh_NcpElemsGlobal,pReal)
|
wgt = 1.0/real(mesh_maxNips*mesh_NcpElemsGlobal,pReal)
|
||||||
|
|
Loading…
Reference in New Issue