mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: waveModel - updated restart method
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user