|
DAMASK with grid solvers
Revision: v2.0.3-2204-gdb1f2151
The Düsseldorf Advanced Material Simulation Kit with Grid Solvers
|
|
Go to the documentation of this file. 1 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/debug.f90"
4 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/debug.f90"
19 integer,
parameter,
public :: &
23 integer,
parameter,
private :: &
25 integer,
parameter,
public :: &
32 integer,
parameter,
public :: &
45 integer,
parameter,
private :: &
48 integer,
protected,
dimension(debug_maxNtype+2),
public :: &
51 integer,
protected,
public :: &
56 integer,
dimension(2),
public :: &
70 character(len=1024),
parameter,
public :: &
85 character(len=pStringLen),
dimension(:),
allocatable :: filecontent
88 integer,
allocatable,
dimension(:) :: chunkpos
89 character(len=pStringLen) :: tag, line
92 write(6,
'(/,a)')
' <<<+- debug init -+>>>'
98 inquire(file=
'debug.config', exist=fexist)
100 fileexists:
if (fexist)
then
102 do j=1,
size(filecontent)
103 line = filecontent(j)
108 case (
'element',
'e',
'el')
110 case (
'integrationpoint',
'i',
'ip')
112 case (
'grain',
'g',
'gr')
122 case (
'fesolving',
'fe')
130 case (
'constitutive')
134 case (
'homogenization')
148 do i = 2, chunkpos(1)
179 write(6,
'(a,/)')
' using values from config file'
182 write(6,
'(a,/)')
' using standard values'
203 tag =
' Constitutive'
207 tag =
' Homogenizaiton'
211 tag =
' Spectral solver'
213 tag =
' MSC.MARC FEM solver'
217 write(6,
'(3a)')
' debug level for ', trim(tag),
':'
221 write(6,
'(a)')
' selective on:'
222 write(6,
'(a24,1x,i8)')
' element: ',
debug_e
223 write(6,
'(a24,1x,i8)')
' ip: ',
debug_i
224 write(6,
'(a24,1x,i8)')
' grain: ',
debug_g
264 write(6,
'(2/,a,/)')
' Extreme values of returned stress and Jacobian'
265 write(6,
'(a39)')
' value el ip'
269 write(6,
'(a14,1x,e12.3,1x,i8,1x,i4,/)')
' max :',
debug_jacobianmax,
debug_jacobianmaxlocation
270 endif debugoutputcpfem
subroutine, public debug_init
reads in parameters from debug.config and allocates arrays
pure integer function, dimension(:), allocatable, public io_stringpos(string)
locates all whitespace-separated chunks in given string and returns array containing number them and ...
integer, parameter, public debug_spectraldivergence
character(len=pstringlen) function, dimension(:), allocatable, public io_read_ascii(fileName)
reads an entire ASCII file into an array
subroutine, public debug_info
writes debug statements to standard out
integer, public, protected debug_i
integer, parameter, public debug_mesh
stores debug level for mesh part of DAMASK bitwise coded
integer, dimension(debug_maxntype+2), public, protected debug_level
integer, dimension(2), public debug_stressminlocation
subroutine, public debug_reset
resets all debug values
integer, parameter, public debug_spectralrestart
integer, parameter, public debug_fesolving
integer, parameter, public debug_crystallite
integer, parameter, public debug_lattice
stores debug level for lattice part of DAMASK bitwise coded
real(preal), public debug_stressmax
setting precision for real and int type
integer, dimension(2), public debug_jacobianminlocation
integer, parameter, public debug_material
stores debug level for material part of DAMASK bitwise coded
integer, parameter, public debug_levelselective
character(len=1024), parameter, public petscdebug
real(preal), public debug_jacobianmax
input/output functions, partly depending on chosen solver
integer, parameter, public debug_homogenization
integer, parameter, public debug_levelbasic
integer, parameter preal
number with 15 significant digits, up to 1e+-307 (typically 64 bit)
Reading in and interpretating the debugging settings for the various modules.
integer, parameter, public debug_spectralfftw
real(preal), public debug_stressmin
logical pure function, public io_isblank(string)
identifies strings without content
integer, parameter, public debug_math
integer, parameter, private debug_maxgeneral
integer, parameter, public debug_levelextensive
real(preal), public debug_jacobianmin
integer function, public io_intvalue(string, chunkPos, myChunk)
reads integer value at myChunk from string
integer, parameter, public debug_spectral
integer, parameter, public debug_marc
integer, dimension(2), public debug_stressmaxlocation
integer, parameter, public debug_constitutive
stores debug level for constitutive part of DAMASK bitwise coded
integer, public, protected debug_e
integer, parameter, private debug_maxntype
must be set to the maximum defined debug type
integer, parameter, public debug_spectralpetsc
integer, parameter, public debug_spectralrotation
pure character(len=len(string)) function, public io_lc(string)
changes characters in string to lower case
character(len=:) function, allocatable, public io_stringvalue(string, chunkPos, myChunk)
reads string value at myChunk from string
integer, public, protected debug_g
integer, dimension(2), public debug_jacobianmaxlocation
integer, parameter, public debug_debug
integer, parameter, public debug_cpfem