Skip to content

Commit

Permalink
Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry authored and Henry committed Nov 28, 2011
2 parents 638e9c8 + 4300870 commit 4a2c44d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/OpenFOAM/primitives/ops/ops.H
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ Op(cmptDivide, cmptDivide(x, y))
Op(stabilise, stabilise(x, y))
Op(max, max(x, y))
Op(min, min(x, y))
Op(minMagSqr, (magSqr(x)<=magSqr(y) ? x : y))
Op(maxMagSqr, (magSqr(x)>=magSqr(y) ? x : y))
Op(minMod, minMod(x, y))
Op(and, x && y)
Op(or, x || y)
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ void Foam::rotatedBoxToCell::combine(topoSet& set, const bool add) const
{
boxFaceNormals[i] = boxFaces[i].normal(boxPoints);

Pout<< "Face:" << i << " position:" << boxFaces[i].centre(boxPoints)
<< " normal:" << boxFaceNormals[i] << endl;
//Pout<< "Face:" << i << " position:" << boxFaces[i].centre(boxPoints)
// << " normal:" << boxFaceNormals[i] << endl;
}

// Check whether cell centre is inside all faces of box.
Expand Down

0 comments on commit 4a2c44d

Please sign in to comment.