mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
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:
@ -46,8 +46,8 @@ protected:
|
||||
|
||||
int32 precision_;
|
||||
|
||||
inline static fileSystem defaultRootPath = CWD();
|
||||
inline static fileSystem defaultCDPath = CWD()/"system"+"controlDict";
|
||||
inline static fileSystem defaultRootPath = pFlow::CWD();
|
||||
inline static fileSystem defaultCDPath = pFlow::CWD()/word("system")+word("controlDict");
|
||||
|
||||
word convertTimeToName(const real t, const int32 precision)const;
|
||||
|
||||
|
@ -113,7 +113,7 @@ public:
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
uniquePtr<pointField_H<T>> createUniformPointField_H(word const& name, T value)
|
||||
uniquePtr<pointField_H<T>> createUniformPointField_H(word const& name, T value, bool regRep = true)
|
||||
{
|
||||
if( !checkForPointStructure() )
|
||||
{
|
||||
@ -124,21 +124,43 @@ public:
|
||||
|
||||
auto& pStruct = repository_.lookupObject<pointStructure>(pointStructureFile__);
|
||||
|
||||
|
||||
auto Ptr = makeUnique<pointField_H<T>>
|
||||
(
|
||||
objectFile
|
||||
if(regRep)
|
||||
{
|
||||
auto Ptr = makeUnique<pointField_H<T>>
|
||||
(
|
||||
name,
|
||||
"",
|
||||
objectFile::READ_NEVER,
|
||||
objectFile::WRITE_NEVER
|
||||
),
|
||||
pStruct,
|
||||
T{},
|
||||
value
|
||||
);
|
||||
return Ptr;
|
||||
objectFile
|
||||
(
|
||||
name,
|
||||
"",
|
||||
objectFile::READ_NEVER,
|
||||
objectFile::WRITE_NEVER
|
||||
),
|
||||
pStruct,
|
||||
T{},
|
||||
value
|
||||
);
|
||||
return Ptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto Ptr = makeUnique<pointField_H<T>>
|
||||
(
|
||||
objectFile
|
||||
(
|
||||
name,
|
||||
"",
|
||||
objectFile::READ_NEVER,
|
||||
objectFile::WRITE_NEVER
|
||||
),
|
||||
nullptr,
|
||||
pStruct,
|
||||
value
|
||||
);
|
||||
Ptr().fill(value);
|
||||
return Ptr;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user