mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Added error message if databases contain less than three times.
This commit is contained in:
@ -84,6 +84,12 @@ standardRecModel::standardRecModel
|
||||
{
|
||||
FatalError <<"database " << dataBaseNames_[i] << " does not exist or is empty\n" << abort(FatalError);
|
||||
}
|
||||
else if (timeDirs.size() < 3)
|
||||
{
|
||||
FatalError <<"database " << dataBaseNames_[i] << " contains only one or two entries. "<<
|
||||
"To describe a steady state, create copies of the steady fields so that the database contains "<<
|
||||
"entries with three identical sets of fields.\n" << abort(FatalError);
|
||||
}
|
||||
timeDirs_.append(timeDirs);
|
||||
|
||||
numRecFields_.append(label(timeDirs_[i].size()));
|
||||
|
||||
Reference in New Issue
Block a user