-
Notifications
You must be signed in to change notification settings - Fork 57
Mpi for heat eqn #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
WasimNiyazMunshi
wants to merge
1
commit into
dealii:master
Choose a base branch
from
WasimNiyazMunshi:MPI_for_Heat_Eqn
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mpi for heat eqn #215
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,61 @@ | ||
## | ||
# CMake script for the MPI_heat_eqn tutorial program: | ||
## | ||
|
||
# Set the name of the project and target: | ||
SET(TARGET "MPI_heat_eqn") | ||
|
||
# Declare all source files the target consists of. Here, this is only | ||
# the one step-X.cc file, but as you expand your project you may wish | ||
# to add other source files as well. If your project becomes much larger, | ||
# you may want to either replace the following statement by something like | ||
# FILE(GLOB_RECURSE TARGET_SRC "source/*.cc") | ||
# FILE(GLOB_RECURSE TARGET_INC "include/*.h") | ||
# SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC}) | ||
# or switch altogether to the large project CMakeLists.txt file discussed | ||
# in the "CMake in user projects" page accessible from the "User info" | ||
# page of the documentation. | ||
SET(TARGET_SRC | ||
${TARGET}.cc | ||
) | ||
|
||
# Usually, you will not need to modify anything beyond this point... | ||
|
||
CMAKE_MINIMUM_REQUIRED(VERSION 3.13.4) | ||
|
||
FIND_PACKAGE(deal.II 9.5.0 | ||
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} | ||
) | ||
IF(NOT ${deal.II_FOUND}) | ||
MESSAGE(FATAL_ERROR "\n" | ||
"*** Could not locate a (sufficiently recent) version of 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 fulfilled? | ||
# | ||
if(NOT ((DEAL_II_WITH_PETSC AND NOT DEAL_II_PETSC_WITH_COMPLEX) OR DEAL_II_WITH_TRILINOS) OR NOT DEAL_II_WITH_P4EST) | ||
message(FATAL_ERROR " | ||
Error! This tutorial requires a deal.II library that was configured with the following options: | ||
DEAL_II_WITH_PETSC = ON | ||
DEAL_II_PETSC_WITH_COMPLEX = OFF | ||
DEAL_II_WITH_P4EST = ON | ||
or | ||
DEAL_II_WITH_TRILINOS = ON | ||
DEAL_II_WITH_P4EST = ON | ||
However, the deal.II library found at ${DEAL_II_PATH} was configured with these options: | ||
DEAL_II_WITH_PETSC = ${DEAL_II_WITH_PETSC} | ||
DEAL_II_PETSC_WITH_COMPLEX = ${DEAL_II_PETSC_WITH_COMPLEX} | ||
DEAL_II_WITH_P4EST = ${DEAL_II_WITH_P4EST} | ||
DEAL_II_WITH_TRILINOS = ${DEAL_II_WITH_TRILINOS} | ||
This conflicts with the requirements. | ||
One or both of the aforementioned combinations of prerequisites are not met by your installation, but at least one is required for this tutorial step." | ||
) | ||
|
||
endif() | ||
DEAL_II_INITIALIZE_CACHED_VARIABLES() | ||
PROJECT(${TARGET}) | ||
DEAL_II_INVOKE_AUTOPILOT() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.