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
a47218dd
Commit
a47218dd
authored
Feb 20, 2020
by
niklas.baumgarten
Browse files
new config and minor fixes
parent
74586d7f
Changes
6
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a47218dd
...
...
@@ -9,7 +9,7 @@ project(MLMC)
option
(
NO_DEPRECATED
"Suppress deprecated warnings"
OFF
)
option
(
BUILD_TESTS
"Build test executables"
O
N
)
option
(
BUILD_TESTS
"Build test executables"
O
FF
)
option
(
USE_CXSC
"Use interval arithmetic library cxsc"
OFF
)
option
(
PROBLEM_NO_TIME
"Time independent problem"
OFF
)
...
...
@@ -34,6 +34,7 @@ include_directories(${PROJECT_SOURCE_DIR}/mlmc/src)
# Subdirectories
add_subdirectory
(
mlmc/src
)
add_subdirectory
(
mlmc/tests
)
#---------------------------------------------------------------------------------------#
# Executables
...
...
@@ -42,14 +43,4 @@ add_executable(MLMC-M++ mlmc/src/Main.C)
# Linking
target_link_libraries
(
MLMC-M++ MLMC sprng SRC LIB_PS
${
SUPERLU
}
${
BLAS_LIBRARIES
}
${
LAPACK_LIBRARIES
}
fftw3 m
)
#---------------------------------------------------------------------------------------#
# Test Executables
#add_executable(TestCirculantEmbedding mlmc/tests/TestCirculantEmbedding.C)
#add_executable(TestRNManager mlmc/tests/TestRNManager.C)
# Linking
#target_link_libraries(TestCirculantEmbedding MLMC sprng SRC LIB_PS ${SUPERLU}
# blas lapack fftw3 m ${GTEST_LIB})
#target_link_libraries(TestRNManager MLMC sprng fftw3 m ${GTEST_LIB})
#---------------------------------------------------------------------------------------#
\ No newline at end of file
mlmc/conf/mlmc_transport.conf
View file @
a47218dd
...
...
@@ -40,25 +40,26 @@ Experiment = ConvergenceTest
#Experiment = MLMCOverEpsilon
initLevels
=
4
,
5
,
6
initSampleAmount
=
0
,
0
,
1
initSampleAmount
=
16
,
4
,
2
uniformSampleAmount
=
1
epsilon
=
0
.
01
mcOnly
=
false
epsilonList
=
0
.
01
,
0
.
005
,
0
.
001
epsilonList
=
0
.
01
,
0
.
005
,
0
.
003
,
0
.
001
maxLevel
=
7
maxLevel
=
9
plevel
=
3
MainVerbose
=
1
MCVerbose
=
2
MLMCVerbose
=
2
PDEVerbose
=
1
PDEVerbose
=
0
GeneratorVerbose
=
0
AssembleVerbose
=
0
GeneratorPlotting
=
4
MCPlotting
=
3
MLMCPlotting
=
2
GeneratorPlotting
=
0
MCPlotting
=
0
MLMCPlotting
=
0
# Stochastic Field
mean
=
1
.
0
...
...
mlmc/src/mc/MonteCarloTransport.C
View file @
a47218dd
...
...
@@ -22,7 +22,7 @@ void MonteCarloTransport::method() {
assemble
->
plot
=
finePlot
;
assemble
->
problem
->
LoadNewSample
(
&
fineNormalFlux
);
solvePDE
(
l
,
0
,
true
,
fineQ
,
fineCost
,
fineSolution
);
solvePDE
(
l
,
m
,
true
,
fineQ
,
fineCost
,
fineSolution
);
if
(
!
onlyFineLevel
)
{
...
...
@@ -37,7 +37,7 @@ void MonteCarloTransport::method() {
assemble
->
plot
=
coarsePlot
;
assemble
->
problem
->
LoadNewSample
(
&
coarseNormalFlux
);
solvePDE
(
l
,
0
,
false
,
coarseQ
,
coarseCost
,
coarseSolution
);
solvePDE
(
l
,
m
,
false
,
coarseQ
,
coarseCost
,
coarseSolution
);
}
else
{
coarseQ
=
0
.
0
,
coarseCost
=
0
.
0
;
...
...
mlmc/tests/CMakeLists.txt
0 → 100644
View file @
a47218dd
# Test Executables
#add_executable(TestCirculantEmbedding mlmc/tests/TestCirculantEmbedding.C)
#add_executable(TestRNManager mlmc/tests/TestRNManager.C)
# Linking
#target_link_libraries(TestCirculantEmbedding MLMC sprng SRC LIB_PS ${SUPERLU}
# blas lapack fftw3 m ${GTEST_LIB})
#target_link_libraries(TestRNManager MLMC sprng fftw3 m ${GTEST_LIB})
\ No newline at end of file
mlmc/tests/TestCirculantEmbedding.
C
→
mlmc/tests/TestCirculantEmbedding.
cpp
View file @
a47218dd
File moved
mlmc/tests/TestRNManager.
C
→
mlmc/tests/TestRNManager.
cpp
View file @
a47218dd
File moved
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