ENH: waveModel - updated restart method

This commit is contained in:
Andrew Heather
2016-11-23 15:48:56 +00:00
parent c7b51f98e7
commit bc05a40b56
22 changed files with 66 additions and 86 deletions

View File

@ -76,7 +76,7 @@ Foam::waveModels::regularWaveModel::regularWaveModel
{
if (readFields)
{
read();
read(dict);
}
}
@ -89,9 +89,9 @@ Foam::waveModels::regularWaveModel::~regularWaveModel()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::waveModels::regularWaveModel::read()
bool Foam::waveModels::regularWaveModel::read(const dictionary& overrideDict)
{
if (waveGenerationModel::read())
if (waveGenerationModel::read(overrideDict))
{
lookup("wavePeriod") >> wavePeriod_;
if (wavePeriod_ < 0)

View File

@ -99,7 +99,7 @@ public:
// Public Member Functions
//- Read from dictionary
virtual bool read();
virtual bool read(const dictionary& overrideDict);
//- Info
virtual void info(Ostream& os) const;