18 label lRoot = strlen(the_path);
19 label lCase = strlen(filename_1);
25 lRoot = strlen(the_path);
26 lCase = strlen(filename_1);
29 if (the_path[lRoot-1] ==
'/')
31 the_path[lRoot-1] =
'\0';
44 for (
label i=0; i<lCase-lRoot;i++)
46 tmp[i] = filename_1[i+1+lRoot];
64 Time::controlDictName,
75 fvMesh::defaultRegion,
91 IOobjectList objects(*
meshPtr, runTime.timeName());
104 bool isitScalar =
false;
107 if (fieldNames[
n] == scalars[i])
120 bool isitVector =
false;
123 if (fieldNames[
n] == vectors[i])
136 bool isitTensor =
false;
139 if (fieldNames[
n] == tensors[i])
148 bool lagrangianNamesFound =
false;
152 runTime.setTime(
timeDirs[n+1], n+1);
154 Cloud<passiveParticle> lagrangian(*
meshPtr, cloud::defaultName);
157 if (lagrangian.size())
159 lagrangianNamesFound =
true;
174 if (sprayHeader.typeHeaderOk<Cloud<passiveParticle>>(
false))
176 Info<<
"[Found lagrangian]" <<
endl;
182 IOobjectList objects(*meshPtr, runTime.timeName(), cloud::prefix);
189 isSpray[fieldNames.size()] =
true;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static word sprayScalarFieldName
static bool isSpray[maxNames]
static Cloud< passiveParticle > * sprayPtr
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static List< word > lagrangianScalarNames
static int Current_time_step
static word sprayVectorFieldName
static int Numparts_available
static bool isVector[maxNames]
static List< word > fieldNames
static int Num_time_steps
static instantList timeDirs
static label nSprayVariables
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
static int Num_unstructured_parts
static List< word > lagrangianVectorNames
static bool isTensor[maxNames]
int USERD_set_filenames(char filename_1[], char filename_2[], char the_path[], int swapbytes)
static instantList findTimes(const fileName &, const word &constantName="constant")
Search a given directory for valid time directories.
List< word > wordList
A List of words.
static int Num_structured_parts
Ostream & flush(Ostream &os)
Flush stream.
static label var2field[maxNames]
static bool isScalar[maxNames]