build(hypre): added hypre as a subproject
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -71,6 +71,7 @@ subprojects/hypre/
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
mpi-install-log.txt
|
||||||
|
|
||||||
output/
|
output/
|
||||||
|
|
||||||
|
|||||||
17
mk
17
mk
@@ -339,6 +339,23 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## --- Check if MPI is installed ---
|
||||||
|
log "${BLUE}[Info] Checking MPI status...${NC}"
|
||||||
|
# if the following script exists with anything other than a 0 status the script will exit
|
||||||
|
if [[ -f ./build-config/mpi/.mpi_installed ]]; then
|
||||||
|
log "${MAGENTA}[Succsess] MPI already installed. Skipping...${NC}"
|
||||||
|
else
|
||||||
|
log "${BLUE}[Info] Installing MPI...${NC}"
|
||||||
|
if ! ./build-config/mpi/install.sh; then
|
||||||
|
log "${RED}[Error] MPI check failed. Exiting...${NC}"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
touch ./build-config/mpi/.mpi_installed
|
||||||
|
log "${GREEN}[Succsess] MPI check passed.${NC}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#check if the last build flags are the same as the current build flags
|
#check if the last build flags are the same as the current build flags
|
||||||
# if the flags are the same skip the configuration step
|
# if the flags are the same skip the configuration step
|
||||||
# if they are different then reconfigure the build directory
|
# if they are different then reconfigure the build directory
|
||||||
|
|||||||
7
subprojects/hypre.wrap
Normal file
7
subprojects/hypre.wrap
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[wrap-git]
|
||||||
|
url = https://github.com/hypre-space/hypre.git
|
||||||
|
revision = v2.33.0
|
||||||
|
depth = 1
|
||||||
|
patch_directory = hypre
|
||||||
|
|
||||||
|
[cmake]
|
||||||
6
subprojects/packagefiles/hypre/CMakeLists.txt
Normal file
6
subprojects/packagefiles/hypre/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# subprojects/packagefiles/hypre/CMakeLists.txt
|
||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
project(hypre-wrapper C CXX)
|
||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
# This file is just used to redirect to the src directory where hypre stores its CMakeLists.txt
|
||||||
Reference in New Issue
Block a user