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:
Mark Olesen
2023-12-07 09:53:59 +01:00
parent 43143f21d2
commit 13352861c8
37 changed files with 453 additions and 300 deletions

View File

@ -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 {};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //