foamGet: set correct target directory for fvConstraints

This commit is contained in:
Chris Greenshields
2022-07-08 19:06:34 +01:00
parent c8b74c2458
commit 394fc28d42

View File

@ -154,9 +154,13 @@ setTgt () {
_tgt="$3"
! [ "$_tgt" ] && \
echo "$_file" | grep -Eq "(fvModel|fvConstraint)" && \
echo "$_file" | grep -q fvModel && \
_tgt="constant"
! [ "$_tgt" ] && \
echo "$_file" | grep -q fvConstraint && \
_tgt="system"
! [ "$_tgt" ] && \
case "$prefix" in
All*) _tgt="." ;;