-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cpraveen/master
Making copy of src for mpi implementation
- Loading branch information
Showing
21 changed files
with
7,473 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.