mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve consistency in handling of global IOobjects (#3045)
- replace typeGlobal() global function with is_globalIOobject traits for more consistent and easier overriding. - relocate typeFilePath() global function as a member of IOobject for consistency with typeHeaderOk. BUG: faSchemes, fvSchemes not marked as global file types - caused issues with collated
This commit is contained in:
@ -602,12 +602,11 @@ public:
|
||||
};
|
||||
|
||||
|
||||
//- Template function for obtaining global status
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Global file type for distributedTriSurfaceMesh
|
||||
template<>
|
||||
inline bool typeGlobal<distributedTriSurfaceMesh>()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
struct is_globalIOobject<distributedTriSurfaceMesh> : std::true_type {};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user