Skip to content
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

lmp: throw error for traditional installation if dependent packages are not installed #2777

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/lmp/Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ action() {
fi
}

if (test $1 = 1); then
if (test ! -e ../pppm.cpp); then
echo "Must install KSPACE package with USER-DEEPMD package"
exit 1
fi
if (test ! -e ../fix_ttm.cpp); then
echo "Must install EXTRA-FIX package with USER-DEEPMD package"
exit 1
fi
fi

# all package files with no dependencies

for file in *.cpp *.h; do
Expand Down