Skip to content

Commit

Permalink
changed modules. Only Kokkos is a submodule, all other repos are clon…
Browse files Browse the repository at this point in the history
…ed when necessary
  • Loading branch information
djdunning committed Nov 1, 2023
1 parent ed19fc6 commit 5b6d5e0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "kokkos"]
path = src/Kokkos/kokkos
url = https://github.com/kokkos/kokkos
[submodule "googletest"]
path = test/googletest
url = https://github.com/google/googletest.git
[submodule "heffte"]
path = examples/phaseFieldMPI/heffte
url = https://bitbucket.org/icl/heffte.git
2 changes: 1 addition & 1 deletion examples/phaseFieldMPI/heffte
Submodule heffte updated from 08b2a9 to 40ad9c
2 changes: 1 addition & 1 deletion scripts/build-matar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ for arg in "$@"; do
--execution=*)
option="${arg#*=}"
if [[ " ${valid_execution[*]} " == *" $option "* ]]; then
solver="$option"
execution="$option"
else
echo "Error: Invalid --execution specified."
show_help
Expand Down
6 changes: 6 additions & 0 deletions scripts/cmake_build_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

kokkos_build_type="${1}"

if [ ! -d "${EXAMPLE_SOURCE_DIR}/phaseFieldMPI/heffte" ]
then
echo "Missing heffte for examples, downloading...."
git clone https://bitbucket.org/icl/heffte.git ${EXAMPLE_SOURCE_DIR}/phaseFieldMPI/heffte
fi

cmake_options=(
-D CMAKE_PREFIX_PATH="${MATAR_INSTALL_DIR};${KOKKOS_INSTALL_DIR}"
)
Expand Down
6 changes: 6 additions & 0 deletions scripts/cmake_build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

kokkos_build_type="${1}"

if [ ! -d "${TEST_SOURCE_DIR}/phaseFieldMPI/heffte" ]
then
echo "Missing googletest for testing, downloading...."
git clone https://github.com/google/googletest.git ${TEST_SOURCE_DIR}/googletest
fi

cmake_options=(
-D CMAKE_PREFIX_PATH="${MATAR_INSTALL_DIR};${KOKKOS_INSTALL_DIR}"
)
Expand Down
2 changes: 0 additions & 2 deletions scripts/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ export libdir=${topdir}/lib
export builddir=${basedir}/${my_build}
export installdir=${basedir}/install

export EXAMPLE_BASE_DIR=${basedir}
export EXAMPLE_SOURCE_DIR=${basedir}/examples
export EXAMPLE_BUILD_DIR=${builddir}

export TEST_BASE_DIR=${basedir}
export TEST_SOURCE_DIR=${basedir}/test
export TEST_BUILD_DIR=${builddir}

Expand Down
2 changes: 1 addition & 1 deletion test/googletest
Submodule googletest updated from 519beb to b10fad

0 comments on commit 5b6d5e0

Please sign in to comment.