BUG: DataEntry: corrected external, file based tables

This commit is contained in:
mattijs
2012-02-03 12:39:48 +00:00
parent d3820e2595
commit 100ba9c0c4
9 changed files with 99 additions and 17 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,8 @@ Foam::TableFile<Type>::TableFile(const word& entryName, const dictionary& dict)
const dictionary coeffs(dict.subDict(type() + "Coeffs"));
coeffs.lookup("fileName") >> fName_;
IFstream is(fName_.expand());
fileName expandedFile(fName_);
IFstream is(expandedFile.expand());
is >> this->table_;