32 #ifndef MapFvSurfaceField_H
33 #define MapFvSurfaceField_H
43 template<
class Type,
class MeshMapper>
54 const MeshMapper& mapper
59 template<
class Type,
class MeshMapper>
63 const MeshMapper& mapper
66 if (
field.size() != mapper.surfaceMap().sizeBeforeMapping())
69 <<
"Incompatible size before mapping. Field size: " <<
field.size()
70 <<
" map size: " << mapper.surfaceMap().sizeBeforeMapping()
77 field.autoMap(mapper.surfaceMap(),
field.oriented()());
79 if (
field.oriented()())
82 const labelList flipFaces = mapper.surfaceMap().flipFaceFlux().toc();
86 if (flipFaces[i] <
field.size())
88 field[flipFaces[i]] *= -1.0;