diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C index 5dda836639..22cd511d18 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C @@ -108,16 +108,29 @@ void Foam::turbulentDFSEMInletFvPatchVectorField::writeLumleyCoeffs() const { fileName valsFile ( - this->db().time().caseConstant() - /"boundaryData" - /this->patch().name() - /"0" - /"R" + fileHandler().filePath + ( + fileName + ( + db().time().path() + /db().time().caseConstant() + /"boundaryData" + /this->patch().name() + /"0" + /"R" + ) + ) ); - IFstream is(valsFile); + autoPtr isPtr + ( + fileHandler().NewIFstream + ( + valsFile + ) + ); - Field Rexp(is); + Field Rexp(isPtr()); OFstream os(db().time().path()/"lumley_input.out"); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C index 2a17b6f76a..96896e24b6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorFieldTemplates.C @@ -72,16 +72,29 @@ Foam::turbulentDFSEMInletFvPatchVectorField::interpolateBoundaryData fileName valsFile ( - this->db().time().path() - /this->db().time().caseConstant() - /"boundaryData" - /patchName - /"0" - /fieldName + fileHandler().filePath + ( + fileName + ( + this->db().time().path() + /this->db().time().caseConstant() + /"boundaryData" + /patchName + /"0" + /fieldName + ) + ) ); - IFstream is(valsFile); - Field vals(is); + autoPtr isPtr + ( + fileHandler().NewIFstream + ( + valsFile + ) + ); + + Field vals(isPtr()); Info<< "Turbulent DFSEM patch " << patchName << ": interpolating field " << fieldName