Go to the documentation of this file.
2 #ifndef __fieldSelector_hpp__
3 #define __fieldSelector_hpp__
26 "Field "<< name <<
" does not exist in time repository"<<
endl;
32 FieldType::TYPENAME())
35 "Type of field "<< name <<
" in time repository does not match with"<<
36 FieldType::TYPENAME()<<
endl;
42 auto fieldH = field.hostView();
50 for(
uint32 i=0; i<selected.size(); i++)
52 selectedField[i] = fieldH[selected[i]];
60 #endif //__fieldSelector_hpp__
virtual const uint32Vector & selectedPoints() const =0
#define fatalExit
Fatal exit.
T & lookupObject(const word &name)
return a ref to the underlaying data in the object
bool lookupObjectName(const word &nm) const
word lookupObjectTypeName(const word &nm) const
iOstream & endl(iOstream &os)
Add newline and flush stream.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
const pointStructure & pStruct() const
bool empty() const
If vector is empty.
Vector< T > selectedFieldVals(const pStructSelector &selector, const word &name)