From 461745524f383ab98d5f4f08e88ca66b8bdafb8b Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 13 Aug 2008 16:19:48 +0100 Subject: [PATCH] Print a warning if the "positions" file is missing. --- src/lagrangian/basic/Cloud/CloudIO.C | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lagrangian/basic/Cloud/CloudIO.C b/src/lagrangian/basic/Cloud/CloudIO.C index cbca096a16..ea37ea27a9 100644 --- a/src/lagrangian/basic/Cloud/CloudIO.C +++ b/src/lagrangian/basic/Cloud/CloudIO.C @@ -46,6 +46,13 @@ void Foam::Cloud::initCloud(const bool checkClass) readFields(); } } + else + { + WarningIn("Cloud::initCloud(const bool checkClass)") + << "Cannot read particle positions file " << nl + << " " << ioP.path() << nl + << " assuming the initial cloud contains 0 particles." << endl; + } }