BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / lagrangian / intermediate / submodels / Reacting / InjectionModel / ReactingLookupTableInjection / reactingParcelInjectionDataIO.C
blob146543c7df1ef94f7881edbf07cacb1758705349
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "reactingParcelInjectionData.H"
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 Foam::reactingParcelInjectionData::reactingParcelInjectionData(Istream& is)
32     thermoParcelInjectionData(is)
34     is.check("reading Y's");
35     is >> Y_;
37     is.check("reactingParcelInjectionData(Istream& is)");
41 // * * * * * * * * * * * * * * * IOstream Operators  * * * * * * * * * * * * //
43 Foam::Ostream& Foam::operator<<
45     Ostream& os,
46     const reactingParcelInjectionData& data
49     os << static_cast<const thermoParcelInjectionData&>(data);
51     os << data.Y_;
53     return os;
57 Foam::Istream& Foam::operator>>(Istream& is, reactingParcelInjectionData& data)
59     is >> static_cast<thermoParcelInjectionData&>(data);
61     is.check("reading Y's");
62     is >> data.Y_;
64     is.check("operator(Istream&, reactingParcelInjectionData&)");
66     return is;
70 // ************************************************************************* //