Skip to content

Commit

Permalink
Merge pull request #1 from cpraveen/master
Browse files Browse the repository at this point in the history
Making copy of src for mpi implementation
  • Loading branch information
juanpablogallego committed Oct 9, 2014
2 parents cc8bd34 + e6e0612 commit 8d2b56d
Show file tree
Hide file tree
Showing 21 changed files with 7,473 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src_mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
##
# CMake script for the step-33 tutorial program:
##

# Set the name of the project and target:
SET(TARGET "dflo")

file(GLOB SRC
"*.h"
"*.cc"
)

# Declare all source files the target consists of:
SET(TARGET_SRC
${SRC}
# You can specify additional files here!
)

# A custom command line to run the program
SET(TARGET_RUN ${TARGET} input.prm)

# Usually, you will not need to modify anything beyond this point...

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)

FIND_PACKAGE(deal.II 8.0 QUIET
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
)
IF(NOT ${deal.II_FOUND})
MESSAGE(FATAL_ERROR "\n"
"*** Could not locate deal.II. ***\n\n"
"You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n"
"or set an environment variable \"DEAL_II_DIR\" that contains this path."
)
ENDIF()

#
# Are all dependencies fullfilled?
#
IF(NOT DEAL_II_WITH_TRILINOS)
MESSAGE(FATAL_ERROR "
Error! The deal.II library found at ${DEAL_II_PATH} was not configured with
DEAL_II_WITH_TRILINOS = ON
One or all of these are OFF in your installation but are required for this tutorial step."
)
ENDIF()

SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-tautological-compare" )

DEAL_II_INITIALIZE_CACHED_VARIABLES()
PROJECT(${TARGET})
DEAL_II_INVOKE_AUTOPILOT()
14 changes: 14 additions & 0 deletions src_mpi/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Set environment variable DEAL_II_DIR=/path/to/dealii/installation

To compile

cmake .
make

By default, it compiles debug version. To compile release version do

make release

This will switch to release mode and subsequent compilations will be in release mode. You can switch back to debug mode by

make debug
Loading

0 comments on commit 8d2b56d

Please sign in to comment.