Permalink
Browse files

Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-2.0.x

  • Loading branch information...
2 parents 76c8ee4 + 97fb9ce commit 55b8e881715457672dc2b01abe85e055cd2712f0 mattijs committed Nov 23, 2011
@@ -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;
}

0 comments on commit 55b8e88

Please sign in to comment.