Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mpp
MLMC
Commits
407b3a33
Commit
407b3a33
authored
Jan 02, 2021
by
niklas.baumgarten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor adaptions
parent
255b9420
Pipeline
#125297
failed with stages
in 11 minutes and 56 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
mlmc/src/generators/algorithms/HybridFluxGenerator.cpp
mlmc/src/generators/algorithms/HybridFluxGenerator.cpp
+1
-1
mlmc/src/generators/algorithms/HybridFluxGenerator.hpp
mlmc/src/generators/algorithms/HybridFluxGenerator.hpp
+1
-11
mlmc/tests/generators/TestHybridFluxGenerator.cpp
mlmc/tests/generators/TestHybridFluxGenerator.cpp
+6
-4
No files found.
mlmc/src/generators/algorithms/HybridFluxGenerator.cpp
View file @
407b3a33
...
...
@@ -39,7 +39,7 @@ HybridFaceNormalFluxGenerator::~HybridFaceNormalFluxGenerator() {
delete
pdeSolver
;
delete
solutionFaceValues
;
delete
solutionFaceFlux
;
delete
solutionCellFlux
;
//
delete solutionCellFlux;
}
VectorField
HybridCellFluxGenerator
::
EvalSample
(
const
cell
&
c
)
{
...
...
mlmc/src/generators/algorithms/HybridFluxGenerator.hpp
View file @
407b3a33
...
...
@@ -29,7 +29,7 @@ public:
SampleSolution
*
solutionFaceFlux
;
SampleSolution
*
solutionCellFlux
;
//
SampleSolution *solutionCellFlux;
HybridFaceNormalFluxGenerator
(
Meshes
&
meshes
)
:
SampleGenerator
(
meshes
)
{
...
...
@@ -64,14 +64,4 @@ public:
return
"HybridCellFluxGenerator"
;
}
};
// MatrixGraphs cellMGraphs; cellMGraphs(MatrixGraphs(meshes, new CellDoF(3))),
// MatrixGraphs faceMGraphs; faceMGraphs(MatrixGraphs(meshes, new FaceDoF(1))),
//
// Vector *faceFlux = nullptr;
// Vector *faceValues = nullptr;
// Vector *cellFlux = nullptr;
#endif //HYBRIDFLUXGENERATOR_HPP
mlmc/tests/generators/TestHybridFluxGenerator.cpp
View file @
407b3a33
...
...
@@ -22,7 +22,8 @@ protected:
id
=
new
SampleID
(
6
,
false
,
0
);
meshes
=
MeshesCreator
(
"Interval"
).
WithPLevel
(
id
->
level
.
pLevel
).
WithLevel
(
id
->
level
.
fine
).
Create
();
WithLevel
(
id
->
level
.
fine
).
Create
();
faceNormalFluxGen
=
new
HybridFaceNormalFluxGenerator
(
*
meshes
);
cellFluxGen
=
new
HybridCellFluxGenerator
(
*
meshes
,
*
faceNormalFluxGen
);
}
...
...
@@ -43,8 +44,9 @@ TEST_F(TestHybridFluxGenerator, asd) {
}
int
main
(
int
argc
,
char
**
argv
)
{
return
MppTest
(
MppTestBuilder
(
argc
,
argv
).
WithPPM
().
WithScreenLogging
()).
return
MppTest
(
MppTestBuilder
(
argc
,
argv
).
WithPPM
().
WithScreenLogging
()).
RUN_ALL_MPP_TESTS
();
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment