mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cloud, surfaceRegistry: rename subInstance -> prefix
This commit is contained in:
@ -31,7 +31,7 @@ License
|
||||
|
||||
defineTypeNameAndDebug(Foam::cloud, 0);
|
||||
|
||||
const Foam::word Foam::cloud::subInstance("lagrangian");
|
||||
const Foam::word Foam::cloud::prefix("lagrangian");
|
||||
Foam::word Foam::cloud::defaultName("defaultCloud");
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
@ -44,7 +44,7 @@ Foam::cloud::cloud(const objectRegistry& obr, const word& cloudName)
|
||||
(
|
||||
( cloudName.size() ? cloudName : defaultName ),
|
||||
obr.time().timeName(),
|
||||
subInstance,
|
||||
prefix,
|
||||
obr,
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
|
||||
@ -69,8 +69,8 @@ public:
|
||||
//- Runtime type information
|
||||
TypeName("cloud");
|
||||
|
||||
//- The subInstance (local) to prefix: %lagrangian
|
||||
static const word subInstance;
|
||||
//- The prefix to local: %lagrangian
|
||||
static const word prefix;
|
||||
|
||||
//- The default cloud name: %defaultCloud
|
||||
static word defaultName;
|
||||
|
||||
@ -108,7 +108,7 @@ void Foam::MeshedSurfaceProxy<Face>::write
|
||||
// the local location
|
||||
const fileName objectDir
|
||||
(
|
||||
t.timePath()/surfaceRegistry::subInstance/name/surfMesh::meshSubDir
|
||||
t.timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir
|
||||
);
|
||||
|
||||
if (!isDir(objectDir))
|
||||
|
||||
@ -62,9 +62,7 @@ Foam::fileFormats::surfaceFormatsCore::localMeshFileName(const word& surfName)
|
||||
|
||||
return fileName
|
||||
(
|
||||
surfaceRegistry::subInstance
|
||||
/ name
|
||||
/ surfMesh::meshSubDir
|
||||
surfaceRegistry::prefix/name/surfMesh::meshSubDir
|
||||
/ name + "." + nativeExt
|
||||
);
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ License
|
||||
|
||||
defineTypeNameAndDebug(Foam::surfaceRegistry, 0);
|
||||
|
||||
const Foam::word Foam::surfaceRegistry::subInstance("surfaces");
|
||||
const Foam::word Foam::surfaceRegistry::prefix("surfaces");
|
||||
Foam::word Foam::surfaceRegistry::defaultName("default");
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
@ -48,7 +48,7 @@ Foam::surfaceRegistry::surfaceRegistry
|
||||
(
|
||||
( surfName.size() ? surfName : defaultName ),
|
||||
obr.time().timeName(),
|
||||
subInstance,
|
||||
prefix,
|
||||
obr,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
|
||||
@ -66,8 +66,8 @@ public:
|
||||
//- Runtime type information
|
||||
TypeName("surfaceRegistry");
|
||||
|
||||
//- The subInstance (local) to prefix: %surfaces
|
||||
static const word subInstance;
|
||||
//- The prefix to local: %surfaces
|
||||
static const word prefix;
|
||||
|
||||
//- The default surface name: %default
|
||||
static word defaultName;
|
||||
|
||||
Reference in New Issue
Block a user