issues
search
reverendbedford
/
neml2
GPU enabled material modeling and inference library
Other
8
stars
9
forks
source link
Fix parser memory leak
#107
Closed
hugary1995
closed
11 months ago
reverendbedford
commented
11 months ago
Coverage after merging
valgrind
into
main
90.35%
Coverage Report
File
Branches
Funcs
Lines
Uncovered Lines
include/neml2/base
CrossRef.h
100%
88.46%
100%
Factory.h
100%
11.54%
100%
NEML2Object.h
100%
25%
33.33%
50
,
52
OptionCollection.h
100%
0%
0%
40
,
49
OptionSet.h
100%
43.82%
79.49%
117
,
120
,
123
,
135
,
66
,
74
,
78
,
82
Registry.h
100%
96.20%
100%
UniqueVector.h
100%
23.81%
83.33%
169
,
171–172
include/neml2/drivers
Driver.h
100%
0%
0%
56
include/neml2/misc
error.h
100%
38.39%
82.35%
35–36
,
38
math.h
100%
100%
100%
parser_utils.h
100%
54.10%
88%
37–38
,
40
utils.h
100%
68.47%
76.27%
173
,
239
,
241–246
,
267
,
302
,
304–307
include/neml2/models
ImplicitUpdate.h
100%
100%
100%
LabeledAxisInterface.h
100%
0%
0%
43
,
45
,
50
,
52–53
LinearInterpolation.h
100%
14.29%
100%
Model.h
100%
12.28%
66.67%
196
,
198–201
,
209
,
213
,
215–218
,
226
,
262
,
287
,
314
,
316
,
318
,
71
,
77
,
82
NonlinearParameter.h
100%
9.09%
100%
include/neml2/tensors
BatchTensorBase.h
100%
65.91%
89.13%
262
,
264
,
308
,
310–311
FixedDimTensor.h
100%
18.18%
100%
LabeledAxis.h
100%
0%
0%
107
,
110
,
113
,
139
,
67
,
72–74
LabeledAxisAccessor.h
100%
50%
50%
59
LabeledTensor.h
100%
40.38%
87.88%
112
,
47
,
93
,
97
Scalar.h
100%
63.64%
100%
VecBase.h
100%
87.50%
100%
src/neml2/base
CrossRef.cxx
100%
61.54%
100%
Factory.cxx
100%
80%
68.18%
45
,
47–51
,
62
HITParser.cxx
100%
100%
100%
NEML2Object.cxx
100%
100%
100%
OptionCollection.cxx
100%
100%
100%
OptionSet.cxx
100%
80%
82.76%
112
,
114
,
124
,
126
,
35
Registry.cxx
100%
100%
100%
src/neml2/drivers
Driver.cxx
100%
100%
87.50%
35
TransientDriver.cxx
100%
93.33%
81.90%
115
,
149
,
151–153
,
156–157
,
161–165
,
167–172
,
175–176
,
46
src/neml2/drivers/solid_mechanics
SolidMechanicsDriver.cxx
100%
100%
97.37%
43
src/neml2/misc
error.cxx
100%
100%
100%
math.cxx
100%
66.67%
55.77%
101
,
103–105
,
108
,
110–113
,
117–118
,
121
,
123–124
,
81
,
83–84
,
87
,
89
,
93–94
,
96
,
99
parser_utils.cxx
100%
100%
98.18%
73
utils.cxx
100%
100%
86.67%
44
,
52
src/neml2/models
BackwardEulerTimeIntegration.cxx
100%
100%
97.78%
40
ComposedModel.cxx
100%
100%
97.85%
116
,
295
,
308
,
37
ForceRate.cxx
100%
100%
98%
41
ForwardEulerTimeIntegration.cxx
100%
100%
97.62%
41
IdentityMap.cxx
100%
100%
94.74%
41
ImplicitUpdate.cxx
100%
100%
97.83%
38
Interpolation.cxx
100%
45.45%
96%
38
LabeledAxisInterface.cxx
100%
100%
100%
LinearInterpolation.cxx
100%
45.45%
100%
Model.cxx
100%
65.38%
92.31%
167–169
,
253
,
307
,
324
,
326–327
,
332
,
40
,
51
,
62
,
72
,
89
NonlinearParameter.cxx
100%
59.09%
90.91%
36
SR2Invariant.cxx
100%
100%
96.23%
110
,
40
StateRate.cxx
100%
66.67%
98%
41
SumModel.cxx
100%
100%
95.83%
41
src/neml2/models/solid_mechanics
AssociativeIsotropicPlasticHardening.cxx
100%
100%
96.43%
39
AssociativeKinematicPlasticHardening.cxx
100%
100%
96.67%
40
AssociativePlasticFlow.cxx
100%
100%
96.43%
39
ChabochePlasticHardening.cxx
100%
100%
97.62%
43
ElasticStrain.cxx
100%
100%
96.67%
43
Elasticity.cxx
100%
100%
94.12%
40
FlowRule.cxx
100%
100%
88.89%
35
IsotropicHardening.cxx
100%
100%
91.67%
36
IsotropicMandelStress.cxx
100%
100%
100%
KinematicHardening.cxx
100%
100%
90.91%
36
LinearIsotropicElasticity.cxx
100%
100%
96.15%
39
LinearIsotropicHardening.cxx
100%
100%
92.86%
37
LinearKinematicHardening.cxx
100%
100%
93.75%
38
MandelStress.cxx
100%
100%
90.91%
38
Normality.cxx
100%
100%
97.73%
41
OverStress.cxx
100%
100%
96%
40
PerzynaPlasticFlowRate.cxx
100%
100%
92.31%
38
,
71
PlasticFlowRate.cxx
100%
100%
90.91%
36
RateIndependentPlasticFlowConstraint.cxx
100%
100%
97.22%
40
TotalStrain.cxx
100%
100%
96.30%
43
VoceIsotropicHardening.cxx
100%
100%
95.45%
38
YieldFunction.cxx
100%
100%
97.06%
40
src/neml2/solvers
NewtonNonlinearSolver.cxx
100%
100%
92%
49
,
73
NonlinearSolver.cxx
100%
100%
91.67%
37
NonlinearSystem.cxx
100%
100%
90.48%
36
,
46
Solver.cxx
100%
100%
87.50%
35
src/neml2/tensors
BatchTensor.cxx
100%
100%
100%
BatchTensorBase.cxx
100%
34.38%
94.26%
208
,
351
,
373
,
375
,
56
,
58
,
60
FixedDimTensor.cxx
100%
68.60%
100%
LabeledAxis.cxx
100%
92.86%
82.17%
104
,
107
,
109
,
129
,
188
,
195
,
205
,
209–210
,
212
,
235
,
323
,
325–329
,
337
,
387
,
392
,
394
,
400
,
402–404
,
406–407
,
410
,
412–413
,
415
,
417–422
,
424–426
,
92
LabeledAxisAccessor.cxx
100%
100%
100%
LabeledMatrix.cxx
100%
60%
56%
42
,
44–49
,
77
,
79
,
82–83
LabeledTensor.cxx
100%
55.56%
83.10%
116
,
118
,
178
,
180
,
206
,
208
,
59–61
,
63
,
94
,
96
LabeledTensor3D.cxx
100%
66.67%
66.67%
33
,
35–43
LabeledVector.cxx
100%
60%
59.09%
37
,
39–42
,
53
,
55–56
,
65
R2.cxx
100%
100%
100%
R3.cxx
100%
100%
100%
R4.cxx
100%
100%
100%
Rot.cxx
100%
87.50%
90%
36–37
,
39
SR2.cxx
100%
100%
100%
SSR4.cxx
100%
81.25%
89.47%
124
,
126
,
130
,
132
,
136
,
138
Scalar.cxx
100%
100%
100%
Vec.cxx
100%
100%
100%
VecBase.cxx
100%
75%
100%
src/neml2/tensors/user_tensors
EmptyBatchTensor.cxx
100%
100%
88.89%
38
EmptyFixedDimTensor.cxx
100%
100%
87.50%
38
FillR2.cxx
100%
100%
85.71%
37
,
65
,
67
,
70
FillSR2.cxx
100%
100%
77.78%
37
,
55–56
,
58
FullBatchTensor.cxx
100%
100%
90.91%
39
FullFixedDimTensor.cxx
100%
100%
90%
39
IdentityBatchTensor.cxx
100%
100%
90%
38
LinspaceBatchTensor.cxx
100%
100%
93.33%
41
LinspaceFixedDimTensor.cxx
100%
100%
93.33%
41
LogspaceBatchTensor.cxx
100%
100%
94.12%
42
LogspaceFixedDimTensor.cxx
100%
100%
94.12%
42
OnesBatchTensor.cxx
100%
100%
88.89%
38
OnesFixedDimTensor.cxx
100%
100%
87.50%
38
UserBatchTensor.cxx
100%
100%
95%
39
UserFixedDimTensor.cxx
100%
100%
73.68%
39
,
53
,
55
,
57
,
59
ZerosBatchTensor.cxx
100%
100%
88.89%
38
ZerosFixedDimTensor.cxx
100%
100%
87.50%
38
Coverage after merging valgrind into main
Coverage Report