Skip to content

Commit

Permalink
BUG: Corrected basicSource::read
Browse files Browse the repository at this point in the history
  • Loading branch information
andy committed Nov 22, 2011
1 parent 5f38cb9 commit a626600
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ void Foam::basicSource::writeData(Ostream& os) const

bool Foam::basicSource::read(const dictionary& dict)
{
const dictionary& sourceDict = dict.subDict(name_);
active_ = readBool(sourceDict.lookup("active"));
timeStart_ = readScalar(sourceDict.lookup("timeStart"));
duration_ = readScalar(sourceDict.lookup("duration"));
active_ = readBool(dict.lookup("active"));
timeStart_ = readScalar(dict.lookup("timeStart"));
duration_ = readScalar(dict.lookup("duration"));
return true;
}

Expand Down

0 comments on commit a626600

Please sign in to comment.