cyclicPolyPatch, GeometricBoundaryField: Updated diagnostic messages

This commit is contained in:
Henry Weller
2020-01-24 11:55:26 +00:00
parent c8a1c95b06
commit 76a725b7b0
3 changed files with 3 additions and 36 deletions

View File

@ -1763,33 +1763,6 @@ _foamToVTK_ ()
}
complete -o filenames -o nospace -F _foamToVTK_ foamToVTK
_foamUpgradeCyclics_ ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
local prev="${COMP_WORDS[COMP_CWORD-1]}"
local line=${COMP_LINE}
local used=$(echo "$line" | grep -oE "\-[a-zA-Z]+ ")
opts="-case -constant -doc -enableFunctionEntries -fileHandler -help -hostRoots -latestTime -newTimes -noFunctionObjects -noZero -parallel -region -roots -srcDoc -test -time"
for o in $used ; do opts="${opts/$o/}" ; done
extra=""
[ "$COMP_CWORD" = 1 ] || \
case "$prev" in
-case)
opts="" ; extra="-d" ;;
-fileHandler)
opts="uncollated collated masterUncollated" ; extra="" ;;
-time)
opts="$(foamListTimes -withZero 2> /dev/null)" ; extra="" ;;
-hostRoots|-region|-roots)
opts="" ; extra="" ;;
*) ;;
esac
COMPREPLY=( $(compgen -W "${opts}" $extra -- ${cur}) )
}
complete -o filenames -o nospace -F _foamUpgradeCyclics_ foamUpgradeCyclics
_foamyHexMesh_ ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -166,7 +166,6 @@ readField
}
}
// Check for any unset patches
forAll(bmesh_, patchi)
{
@ -178,10 +177,7 @@ readField
(
dict
) << "Cannot find patchField entry for cyclic "
<< bmesh_[patchi].name() << endl
<< "Is your field uptodate with split cyclics?" << endl
<< "Run foamUpgradeCyclics to convert mesh and fields"
<< " to split cyclics." << exit(FatalIOError);
<< bmesh_[patchi].name() << endl << exit(FatalIOError);
}
else
{

View File

@ -217,9 +217,7 @@ Foam::cyclicPolyPatch::cyclicPolyPatch
(
dict
) << "No \"neighbourPatch\" provided." << endl
<< "Is your mesh uptodate with split cyclics?" << endl
<< "Run foamUpgradeCyclics to convert mesh and fields"
<< " to split cyclics." << exit(FatalIOError);
<< exit(FatalIOError);
}
if (nbrPatchName_ == name)