Utility postProcess is modified to be used in Version 1.0

- counting dictionary is added to postProcess
- Code need to be modified to cleaned (fields in the repository should be removed onces postProcess is passed the next time step)
This commit is contained in:
HRN
2024-11-18 20:27:44 +03:30
parent d3ccf354b7
commit 75fba2710e
28 changed files with 959 additions and 216 deletions

View File

@ -26,7 +26,7 @@ namespace pFlow
{
template<typename T>
bool convertRectMeshField(iOstream& os, rectMeshField_H<T>& field)
bool convertRectMeshField(iOstream& os, const rectMeshField_H<T>& field)
{
fatalErrorInFunction<< "this type is not supported "<<
field.typeName()<<endl;
@ -36,7 +36,7 @@ bool convertRectMeshField(iOstream& os, rectMeshField_H<T>& field)
template<>
bool convertRectMeshField(iOstream& os, rectMeshField_H<real>& field)
bool convertRectMeshField(iOstream& os, const rectMeshField_H<real>& field)
{
os<<"FIELD FieldData 1 " << field.name() << " 1 "<< field.size() << " float\n";
@ -55,7 +55,7 @@ bool convertRectMeshField(iOstream& os, rectMeshField_H<real>& field)
}
template<>
bool convertRectMeshField(iOstream& os, rectMeshField_H<realx3>& field)
bool convertRectMeshField(iOstream& os, const rectMeshField_H<realx3>& field)
{
os<<"FIELD FieldData 1 " << field.name() << " 3 "<< field.size() << " float\n";
@ -74,7 +74,7 @@ bool convertRectMeshField(iOstream& os, rectMeshField_H<realx3>& field)
}
template<>
bool convertRectMeshField(iOstream& os, rectMeshField_H<int32>& field)
bool convertRectMeshField(iOstream& os, const rectMeshField_H<int32>& field)
{
os<<"FIELD FieldData 1 " << field.name() << " 1 "<< field.size() << " int\n";