Skip to content

Commit 5d7929c

Browse files
committed
examples: Fix return type of get_errors().
Signed-off-by: Matthew Emmett <[email protected]>
1 parent 3de244b commit 5d7929c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

examples/advection_diffusion/advection_diffusion_sweeper.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
using namespace std;
2222

23+
typedef map<pair<size_t, size_t>, double> error_map;
24+
2325
template<typename time = pfasst::time_precision>
2426
class AdvectionDiffusionSweeper
2527
: public pfasst::encap::IMEXSweeper<time>
@@ -30,7 +32,7 @@ class AdvectionDiffusionSweeper
3032
FFT fft;
3133

3234
vector<complex<double>> ddx, lap;
33-
map<pair<size_t, size_t>, double> errors;
35+
error_map errors;
3436

3537
double v = 1.0;
3638
time t0 = 1.0;
@@ -102,7 +104,7 @@ class AdvectionDiffusionSweeper
102104
(pair<size_t, size_t>(n, k), max));
103105
}
104106

105-
auto get_errors()
107+
error_map get_errors()
106108
{
107109
return errors;
108110
}

examples/advection_diffusion/vanilla_sdc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "advection_diffusion_sweeper.hpp"
1616

17-
auto run_vanilla_sdc()
17+
error_map run_vanilla_sdc()
1818
{
1919
pfasst::SDC<> sdc;
2020

tests/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# Building and Running Tests
22
include_directories(
33
${3rdparty_INCLUDES}
4+
${fftw3_INCLUDES}
45
${pfasst_INCLUDES}
56
)
67

78
set(TESTS
89
test-quadrature
10+
test-advection-diffusion
911
)
1012

1113
foreach(test ${TESTS})
1214
message(STATUS " ${test}")
1315
add_executable(${test} ${test}.cpp)
14-
add_dependencies(${test} googlemock)
16+
add_dependencies(${test} googlemock fftw3)
1517
target_link_libraries(${test}
1618
${3rdparty_DEPENDEND_LIBS}
19+
${fftw3_LIBS}
1720
${pfasst_DEPENDED_LIBS}
1821
)
1922
set_target_properties(${test}

0 commit comments

Comments
 (0)