Commit ca3e399a authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

fixed cmake tests

parent 66dbb6ed
Pipeline #149213 failed with stages
in 10 minutes and 49 seconds
......@@ -4,7 +4,7 @@
void MultilevelMonteCarlo::initializeMonteCarloMap() {
mcMap.clear();
for (unsigned long i = 0; i < initLevels.size(); i++) {
bool onlyFine = (i == 0) || (mcOnly);
bool onlyFine = (i == 0);
int M = initSampleAmount[i];
mcMap.insert({initLevels[i], MonteCarlo(initLevels[i], M, onlyFine, true)});
}
......
......@@ -17,15 +17,16 @@ add_mpp_test(generators/TestCirculantEmbedding GENERATORS)
add_mpp_test(generators/TestSymmetricCovariance GENERATORS)
#add_mpp_test(generators/TestHybridFluxGenerator GENERATORS)
add_mpp_test(montecarlo/datastructure/TestEmpiricMeasureLevelMaps MONTECARLO)
add_mpp_test(montecarlo/datastructure/TestExponents MONTECARLO)
add_mpp_test(montecarlo/datastructure/TestErrors MONTECARLO)
add_mpp_test(estimators/datastructure/TestEmpiricMeasureLevelMaps MONTECARLO)
add_mpp_test(estimators/datastructure/TestExponents MONTECARLO)
add_mpp_test(estimators/datastructure/TestErrors MONTECARLO)
add_mpp_test(pdesolver/TestPDESolver PDESOLVER)
# ------- MPI Tests -------
add_mpi_test(TestMain MONTECARLO)
add_mpi_test(generators/TestSPRNG5 MONTECARLO)
add_mpi_test(montecarlo/TestMonteCarlo MONTECARLO)
add_mpi_test(estimators/TestMonteCarlo MONTECARLO)
add_mpi_test(estimators/TestMultilevelMonteCarlo MONTECARLO)
add_mpi_test(pdesolver/TestPDESolver PDESOLVER)
add_mpi_test(montecarlo/datastructure/TestWelfordAggregate MONTECARLO)
\ No newline at end of file
add_mpi_test(estimators/datastructure/TestWelfordAggregate MONTECARLO)
\ No newline at end of file
//
// Created by niklas on 12.05.21.
//
#include "TestMultilevelMonteCarlo.hpp"
int main(int argc, char **argv) {
return MppTest(
MppTestBuilder(argc, argv).
WithConfigEntry("MCVerbose", 1).
WithConfigEntry("MLMCVerbose", 1).
WithConfigEntry("MainVerbose", 1).
WithConfigEntry("MeshVerbose", 1).
WithConfigEntry("ConfigVerbose", 0).
WithConfigEntry("LinearVerbose", 0).
WithConfigEntry("NewtonVerbose", 0).
WithConfigEntry("PDESolverVerbose", 1).
WithConfigEntry("GeneratorVerbose", 0).
WithScreenLogging().
WithPPM()
).RUN_ALL_MPP_TESTS();
}
#ifndef TESTMULTILEVELMONTECARLO_HPP
#define TESTMULTILEVELMONTECARLO_HPP
#include "TestEnvironment.hpp"
class TestMultilevelMonteCarlo {
};
#endif //TESTMULTILEVELMONTECARLO_HPP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment