Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions sorc/build.all
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ cleanup() {
}
trap cleanup SIGINT SIGTERM

if [[ "${1,,}" == "chem" ]] || [[ "${2,,}" == "chem" ]]; then
if [[ "${1,,}" == chem* ]] || [[ "${2,,}" == chem* ]]; then
cd "${HOMErrfs}/sorc" || exit 1
echo "Option 'chem' found in the command line, downloading chem-specific MPAS-Model ......"
remote_url="https://github.com/cheMPAS-Fire/MPAS-Model"
branch_commit="chem/develop" # a branch name or a commit hash
if [[ "${1,,}" == chemrrfs ]] || [[ "${2,,}" == chemrrfs ]]; then
remote_url="https://github.com/RRFSx/MPAS-Model"
branch_commit="chemrrfs"
else
remote_url="https://github.com/cheMPAS-Fire/MPAS-Model"
branch_commit="chem/develop" # a branch name or a commit hash
fi
mv MPAS-Model "MPAS-Model.$(date +%s)" # save a copy of current MPAS-Model
git clone "${remote_url}" MPAS-Model
cd "${HOMErrfs}/sorc/MPAS-Model" || exit 1
git checkout "${branch_commit}"
Comment thread
guoqing-noaa marked this conversation as resolved.
git submodule update --init --recursive
# allow smoke_coarse in histlist_3d_smoke
cp "${HOMErrfs}/fix/chemistry/mpassit/histlist_3d_smoke.coarse" "${HOMErrfs}/fix/chemistry/mpassit/histlist_3d_smoke"
fi
cd "${HOMErrfs}/sorc" || exit 1

Expand Down
Loading