build(hypre): added hypre as a subproject

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

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