Merge pull request #89 from ParticulateFlow/feature/recurrenceLib_fix_predefinedPath

minor fix in predefinedPath model
This commit is contained in:
tlichtenegger
2019-04-25 11:06:11 +02:00
committed by GitHub
2 changed files with 15 additions and 2 deletions

View File

@ -56,8 +56,17 @@ predefinedPath::predefinedPath
:
recPath(dict, base),
propsDict_(dict.subDict(typeName + "Props")),
fileName_(propsDict_.lookupOrDefault<word>("recPathName", "recurrencePath"))
{}
fileName_(propsDict_.lookupOrDefault<word>("recPathName", "predefinedRecurrencePath"))
{
if (fileName_ == "recurrencePath")
{
FatalError << "File name of the user-provided recurrencePath file is "
<< fileName_ << nl
<< "This is in conflict with the automatically written recurrencePath file!" << nl
<< nl << "Choose a different name!"
<< abort(FatalError);
}
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //

View File

@ -20,6 +20,10 @@ License
You should have received a copy of the GNU General Public License
along with CFDEMcoupling academic. If not, see <http://www.gnu.org/licenses/>.
Description
Follow a pre-defined path specified in a user-provided recurrencePath file.
\*---------------------------------------------------------------------------*/
#ifndef predefinedPath_H