33 #ifndef MapFvSurfaceField_H
34 #define MapFvSurfaceField_H
44 template<
class Type,
class MeshMapper>
55 const MeshMapper& mapper
60 template<
class Type,
class MeshMapper>
61 void MapInternalField<Type, MeshMapper, surfaceMesh>::operator()
64 const MeshMapper& mapper
67 if (field.size() != mapper.surfaceMap().sizeBeforeMapping())
71 "void MapInternalField<Type, MeshMapper, surfaceMesh>::operator()\n"
73 " Field<Type>& field,\n"
74 " const MeshMapper& mapper\n"
76 ) <<
"Incompatible size before mapping. Field size: " << field.size()
77 <<
" map size: " << mapper.surfaceMap().sizeBeforeMapping()
81 field.autoMap(mapper.surfaceMap());
84 const labelList flipFaces = mapper.surfaceMap().flipFaceFlux().toc();
88 if (flipFaces[i] < field.
size())
90 field[flipFaces[i]] *= -1.0;