Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cb-util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Alt
cb-util
Commits
05edde61
Commit
05edde61
authored
2 years ago
by
Christoph Alt
Browse files
Options
Downloads
Patches
Plain Diff
added test for fe2ti parser
parent
b35d5a36
Branches
Branches containing commit
No related tags found
1 merge request
!2
Devel/fe2ti postprocessing
Pipeline
#50633
failed
2 years ago
Stage: test
Stage: deploy
Stage: trigger
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cbutil/processing_functions.py
+1
-1
1 addition, 1 deletion
cbutil/processing_functions.py
tests/fe2ti216_bddc_0_1_80_8_1e-8.log
+46
-0
46 additions, 0 deletions
tests/fe2ti216_bddc_0_1_80_8_1e-8.log
tests/test_string_process.py
+10
-0
10 additions, 0 deletions
tests/test_string_process.py
with
57 additions
and
1 deletion
cbutil/processing_functions.py
+
1
−
1
View file @
05edde61
...
@@ -11,7 +11,7 @@ def mesa_pd_text(line: str):
...
@@ -11,7 +11,7 @@ def mesa_pd_text(line: str):
def
fe2ti_parse_complete_timing
(
line
:
str
)
->
dict
:
def
fe2ti_parse_complete_timing
(
line
:
str
)
->
dict
:
if
not
line
.
startswith
(
"
Abs
olut
"
):
if
not
line
.
startswith
(
"
Abs
"
):
raise
ValueError
()
raise
ValueError
()
pattern
=
r
'
([A-Za-z][A-Za-z _]+):\s*(\d+\.\d+)s\s*
'
pattern
=
r
'
([A-Za-z][A-Za-z _]+):\s*(\d+\.\d+)s\s*
'
return
{
name
:
float
(
value
)
for
name
,
value
in
re
.
findall
(
pattern
,
line
)}
return
{
name
:
float
(
value
)
for
name
,
value
in
re
.
findall
(
pattern
,
line
)}
...
...
This diff is collapsed.
Click to expand it.
tests/fe2ti216_bddc_0_1_80_8_1e-8.log
0 → 100644
+
46
−
0
View file @
05edde61
Zeit bis CP: 2.881715e-04
Zeit für CPable: 3.083187e-08
Zeit für CP1: 2.416709e-08
Zeit für CP2: 2.333400e-08
Zeit für CP3: 3.750029e-08
Zeit bis PetscInit: 8.168460e-02
load_step 00 lll_pen 00 Newton_load 01 Newton_gesamt 01 micro_solve: 46.87s Comm_for_couple: 0.03s Time_for_EV: 0.00s Macro_Solve: 0.52s Assembly_Macro: 0.52s KSP_Macro: 0.00s VecConvert: 0.00s iter_macro: 01 Micro_HDF5: 0.00s Comp_W: 0.00s Ass_Maj: 0.00s Comm_FLC: 0.00s FLC_Comp: 0.00s Ausw_Norm: 0.00s TimeDest: 0.00 DestBDDC: 0.00 SendBDDC: 0.00 CreateArrBDDC: 0.00 BDDC_Part: 0.00s PartAss: 0.00s PartKSP: 0.00s PartConv: 0.00s TimeDefo: 0.00s TimeInt: 0.00s ||delta_u||: 3.054712e-04
FLC: 2.9849864544e-04 -3.9222510640e-05
Minimale Dicke: 9.999220e-01
load_step 00 lll_pen 00 Newton_load 02 Newton_gesamt 02 micro_solve: 36.52s Comm_for_couple: 0.01s Time_for_EV: 0.00s Macro_Solve: 0.65s Assembly_Macro: 0.63s KSP_Macro: 0.00s VecConvert: 0.00s iter_macro: 01 Micro_HDF5: 0.00s Comp_W: 0.01s Ass_Maj: 0.00s Comm_FLC: 0.00s FLC_Comp: 0.00s Ausw_Norm: 0.00s TimeDest: 0.00 DestBDDC: 0.00 SendBDDC: 0.00 CreateArrBDDC: 0.00 BDDC_Part: 0.00s PartAss: 0.00s PartKSP: 0.00s PartConv: 0.00s TimeDefo: 0.00s TimeInt: 0.00s ||delta_u||: 2.521526e-08
2.500000e-04 0.000000e+00 0.000000e+00 0.000000e+00
load_step 01 lll_pen 00 Newton_load 01 Newton_gesamt 03 micro_solve: 35.47s Comm_for_couple: 0.01s Time_for_EV: 0.00s Macro_Solve: 0.58s Assembly_Macro: 0.57s KSP_Macro: 0.00s VecConvert: 0.00s iter_macro: 01 Micro_HDF5: 0.00s Comp_W: 0.00s Ass_Maj: 0.00s Comm_FLC: 0.00s FLC_Comp: 0.00s Ausw_Norm: 0.00s TimeDest: 0.00 DestBDDC: 0.00 SendBDDC: 0.00 CreateArrBDDC: 0.00 BDDC_Part: 0.00s PartAss: 0.00s PartKSP: 0.00s PartConv: 0.00s TimeDefo: 0.00s TimeInt: 0.00s ||delta_u||: 3.032566e-04
FLC: 5.9697701501e-04 -7.8428912665e-05
Minimale Dicke: 9.998440e-01
load_step 01 lll_pen 00 Newton_load 02 Newton_gesamt 04 micro_solve: 36.54s Comm_for_couple: 0.01s Time_for_EV: 0.00s Macro_Solve: 0.59s Assembly_Macro: 0.57s KSP_Macro: 0.00s VecConvert: 0.00s iter_macro: 01 Micro_HDF5: 0.00s Comp_W: 0.00s Ass_Maj: 0.00s Comm_FLC: 0.00s FLC_Comp: 0.00s Ausw_Norm: 0.00s TimeDest: 0.00 DestBDDC: 0.00 SendBDDC: 0.00 CreateArrBDDC: 0.00 BDDC_Part: 0.00s PartAss: 0.00s PartKSP: 0.00s PartConv: 0.00s TimeDefo: 0.00s TimeInt: 0.00s ||delta_u||: 3.159300e-08
2.500000e-04 0.000000e+00 0.000000e+00 0.000000e+00
Gewünschte Eindringung erreicht!
Zeit fuer finalen Checkpoint: 0.00s
Absolut_gesamt: 158.93s Time to solution: 158.85s Create Macro Problem: 0.02s Comm_dup_etc: 0.08s
Zusammenfassung CRAFT:
Load Checkpoint Macro: 0.00s
Load Checkpoint Micro: 0.00s
Load gesamt: 0.00s
Write Checkpoint Macro gesamt: 0.00s
Write Chechkpoint Micro gesamt: 0.00s
Write Checkpoint Final gesamt: 0.00s
Gesamtzeit Write Checkpoints: 0.00s
Gesamtzeit CRAFT (Load + Write): 0.00s
Die Summe ist 1
Test A
This diff is collapsed.
Click to expand it.
tests/test_string_process.py
+
10
−
0
View file @
05edde61
...
@@ -98,3 +98,13 @@ def test_fe2ti_intermedate():
...
@@ -98,3 +98,13 @@ def test_fe2ti_intermedate():
assert
fe2ti_intermediate
(
TEST_STR_INTERMEDIATE
)
==
expected
assert
fe2ti_intermediate
(
TEST_STR_INTERMEDIATE
)
==
expected
with
pytest
.
raises
(
ValueError
):
with
pytest
.
raises
(
ValueError
):
fe2ti_intermediate
(
TEST_STR_TOTAL
)
fe2ti_intermediate
(
TEST_STR_TOTAL
)
def
test_fe2ti_log
():
test_file
=
"
tests/fe2ti216_bddc_0_1_80_8_1e-8.log
"
assert
[
*
process_linewise
(
lambda
line
:
fe2ti_parse_complete_timing
(
line
.
strip
()),
read_file_line_wise
(
test_file
))]
assert
[
*
process_linewise
(
lambda
line
:
fe2ti_intermediate
(
line
.
strip
()),
read_file_line_wise
(
test_file
))]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment