diff --git a/src/phasicFlow/containers/Field/Field.cpp b/src/phasicFlow/containers/Field/Field.cpp index 335fbe49..10e14df8 100644 --- a/src/phasicFlow/containers/Field/Field.cpp +++ b/src/phasicFlow/containers/Field/Field.cpp @@ -21,13 +21,17 @@ Licence: template bool pFlow::Field::read ( - iIstream& is + iIstream& is, + bool resume ) { bool tokenFound = true; - tokenFound = is.findToken(fieldKey_); + if(resume) + tokenFound = is.findTokenResume(fieldKey_); + else + tokenFound = is.findToken(fieldKey_); if( !tokenFound ) { @@ -53,14 +57,21 @@ template bool pFlow::Field::read ( iIstream& is, - const IOPattern& iop + const IOPattern& iop, + bool resume ) { bool tokenFound = true; if(iop.thisProcReadData()) - tokenFound = is.findToken(fieldKey_); + { + if(resume) + tokenFound = is.findTokenResume(fieldKey_); + else + tokenFound = is.findToken(fieldKey_); + } + if( !tokenFound ) { diff --git a/src/phasicFlow/containers/Field/Field.hpp b/src/phasicFlow/containers/Field/Field.hpp index 738811bc..b38d3017 100644 --- a/src/phasicFlow/containers/Field/Field.hpp +++ b/src/phasicFlow/containers/Field/Field.hpp @@ -197,12 +197,12 @@ public: //// - IO operations - bool read(iIstream& is); + bool read(iIstream& is, bool resume = false); bool write(iOstream& os)const; - bool read(iIstream& is, const IOPattern& iop); + bool read(iIstream& is, const IOPattern& iop, bool resume = false); bool write(iOstream& os, const IOPattern& iop )const; diff --git a/src/phasicFlow/repository/IOobject/IOobject.cpp b/src/phasicFlow/repository/IOobject/IOobject.cpp index 4442332f..6fae2f0a 100644 --- a/src/phasicFlow/repository/IOobject/IOobject.cpp +++ b/src/phasicFlow/repository/IOobject/IOobject.cpp @@ -126,7 +126,6 @@ bool pFlow::IOobject::writeObject() const { if(auto ptrOS = outStream(); ptrOS ) { - pOutput<<"Should write field "<name()<name()<