[dune-pdelab] Heat Equation in Parallel
Afshin Loni
afshin.loni at gmail.com
Sat Jun 18 17:27:01 CEST 2016
Hi Guys,
Thank you for your answers but I still have the same problem. I tried both
Dominic suggestions. I added dune_enable_all_packages() to the top of
dune-heat module and it didn't work. Then I added
add_dune_mpi_flags(dune-heat) to the cmakelist.txt inside the src folder.
and again nothing happened.
I also installed in on a LRZ supercomputer node and ran it there. this time
I got an error like this:
ga35muh2 at lxa191:~/Dune1/debug-build/dune-heat/src> mpirun -np 4 ./dune-heat
srun: error: Unable to allocate resources: Invalid node name specified
Attached you can find my cmakelist.txt.
Thanks,
Afshin
On Fri, Jun 17, 2016 at 1:48 PM, Markus Blatt <markus at dr-blatt.de> wrote:
> On Fri, Jun 17, 2016 at 01:39:58PM +0200, Christian Engwer wrote:
> > PS: Is there some command to get an output similar to
> > "./configure --help". In particular I'm asking about an option whihc
> > doesn't require me know which cmake-module handles this configuration
> > underneath, but to give me a starting point [without using google ;-)].
> >
>
> Sure, simply open and edit the CMakeCache.txt of your favorite module
> in your favorite browser, or use the ccmake gui (Debian:
> cmake-curses-gui).
>
> Markus
> --
> Using PT-Scotch with DUNE https://t.co/hZH8lxf5ZF
>
> Dr. Markus Blatt - HPC-Simulation-Software & Services
> http://www.dr-blatt.de
> Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
> Tel.: +49 (0) 160 97590858
>
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20160618/cfe40d67/attachment.htm>
-------------- next part --------------
cmake_minimum_required(VERSION 2.8.12)
project(dune-heat CXX)
if(NOT (dune-common_DIR OR dune-common_ROOT OR
"${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
string(REPLACE ${CMAKE_PROJECT_NAME} dune-common dune-common_DIR
${PROJECT_BINARY_DIR})
endif()
#find dune-common and set the module path
find_package(dune-common REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules"
${dune-common_MODULE_PATH})
#include the dune macros
include(DuneMacros)
find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
add_executable(dune-heat dune-heat.cc)
target_link_libraries(dune-heat ${MPI_LIBRARIES})
if(MPI_COMPILE_FLAGS)
set_target_properties(dune-heat PROPERTIES
COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
endif()
if(MPI_LINK_FLAGS)
set_target_properties(dune-heat PROPERTIES
LINK_FLAGS "${MPI_LINK_FLAGS}")
endif()
# start a dune project with information from dune.module
dune_project()
dune_enable_all_packages()
# make sure we have C++14 available
dune_require_cxx_standard(MODULE "dune-heat" VERSION 14)
dune_enable_all_packages()
add_subdirectory("src")
add_subdirectory("m4")
add_subdirectory("dune")
add_subdirectory("doc")
add_subdirectory("cmake/modules")
# finalize the dune project, e.g. generating config.h etc.
finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
More information about the dune-pdelab
mailing list