build(hypre): added hypre as a subproject

This commit is contained in:
2025-05-13 14:14:33 -04:00
parent 21c6657dc6
commit 5595f7109a
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored
View File

@@ -71,6 +71,7 @@ subprojects/hypre/
.vscode/
*.log
mpi-install-log.txt
output/

17
mk
View File

@@ -339,6 +339,23 @@ else
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
# if the flags are the same skip the configuration step
# if they are different then reconfigure the build directory

7
subprojects/hypre.wrap Normal file
View 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]

View 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