Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
a3796858
Commit
a3796858
authored
Sep 28, 2020
by
niklas.baumgarten
Browse files
moved Sample.hpp
parent
eed7b080
Changes
7
Hide whitespace changes
Inline
Side-by-side
mlmc/src/main/MultilevelPlotter.hpp
View file @
a3796858
...
...
@@ -3,7 +3,7 @@
#include
"Plot.h"
#include
"mesh/Meshes.hpp"
#include
"
utility
/Sample
ID
.hpp"
#include
"
montecarlo
/Sample.hpp"
#include
<memory>
#include
<sys/stat.h>
//#include "plot/VtuPlot.h"
...
...
mlmc/src/montecarlo/EmpiricMeasures.hpp
View file @
a3796858
#ifndef EMPIRICMEASURES_HPP
#define EMPIRICMEASURES_HPP
#include
"
utility/
Sample
ID
.hpp"
#include
"Sample.hpp"
struct
SampleCounter
{
...
...
mlmc/src/montecarlo/MonteCarlo.hpp
View file @
a3796858
...
...
@@ -4,7 +4,7 @@
#include
"main/MultilevelPlotter.hpp"
#include
"EmpiricMeasures.hpp"
#include
"PDESolver.hpp"
#include
"
utility/
Sample
ID
.hpp"
#include
"Sample.hpp"
#include
"assemble/IStochasticAssemble.hpp"
...
...
mlmc/src/montecarlo/PDESolver.hpp
View file @
a3796858
#ifndef PDESOLVER_HPP
#define PDESOLVER_HPP
#include
"
utility/
Sample
ID
.hpp"
#include
"Sample.hpp"
#include
"solver/Solver.h"
#include
"solver/Newton.h"
#include
"timestepping/TimeIntegrator.hpp"
...
...
mlmc/src/
utility
/Sample
ID
.hpp
→
mlmc/src/
montecarlo
/Sample.hpp
View file @
a3796858
#ifndef SAMPLE
ID
_HPP
#define SAMPLE
ID
_HPP
#ifndef SAMPLE_HPP
#define SAMPLE_HPP
#include
"Algebra.h"
#include
<string>
...
...
@@ -7,7 +7,9 @@
struct
SampleID
{
int
level
;
int
number
;
bool
coarse
;
std
::
string
Str
()
const
{
...
...
@@ -20,16 +22,14 @@ struct SampleID {
struct
SampleSolution
{
SampleID
id
;
int
mGraphLevel
;
double
Q
;
double
Cost
;
Vector
U
;
SampleSolution
(
MatrixGraphs
&
solMGraphs
,
int
mG
raphL
evel
)
:
U
(
Vector
(
solMGraphs
[
mG
raphL
evel
]))
{
SampleSolution
(
MatrixGraphs
&
solMGraphs
,
int
mG
l
evel
)
:
U
(
Vector
(
solMGraphs
[
mG
l
evel
]))
{
Init
();
}
...
...
@@ -40,4 +40,4 @@ struct SampleSolution {
}
};
#endif //SAMPLE
ID
_HPP
#endif //SAMPLE_HPP
mlmc/src/problem/StochasticProblem.hpp
View file @
a3796858
...
...
@@ -2,7 +2,7 @@
#define STOCHASTICPROBLEM_HPP
#include
"Algebra.h"
#include
"
utility
/Sample
ID
.hpp"
#include
"
montecarlo
/Sample.hpp"
#include
"stochastics/SampleGenerator.hpp"
#include
"main/Utils.hpp"
...
...
mlmc/src/stochastics/SampleGenerator.hpp
View file @
a3796858
...
...
@@ -2,7 +2,7 @@
#define SAMPLEGENERATOR_HPP
#include
"utility/Config.hpp"
#include
"
utility
/Sample
ID
.hpp"
#include
"
montecarlo
/Sample.hpp"
#include
"mesh/Meshes.hpp"
class
SampleGenerator
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment