Skip to content

Commit 13a85a7

Browse files
author
Matthew Emmett
committed
travis: Tidy and add full path for MPI example.
1 parent 7fb9c80 commit 13a85a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ script:
3535
- mkdir build
3636
- cd build
3737
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -Dpfasst_WITH_MPI=${WITH_MPI} -Dpfasst_DISABLE_LIBCXX=ON -Dpfasst_BUILD_TESTS=ON -Dpfasst_BUILD_EXAMPLES=ON ..
38-
- if [ "${WITH_MPI}" == "ON" ]; then mpicxx --version; fi
3938
- make
4039
- make test
4140
- make run_example_all

examples/advection_diffusion/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if(${pfasst_WITH_MPI})
6666
message(STATUS " creating make targets to run MPI examples")
6767
foreach(example ${advec_mpi_examples})
6868
add_custom_target(run_example_advec_${example}
69-
COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ${MPIEXEC_PREFLAGS} ${example} ${MPIEXEC_POSTFLAGS}
69+
COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 4 ${MPIEXEC_PREFLAGS} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples/advection_diffusion/${example} ${MPIEXEC_POSTFLAGS}
7070
DEPENDS ${example}
7171
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples/advection_diffusion
7272
COMMENT "Running Advection-Diffusion example: ${example}" VERBATIM

0 commit comments

Comments
 (0)