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,
105 bool isitScalar =
false;
108 if (fieldNames[
n] == scalars[i])
121 bool isitVector =
false;
124 if (fieldNames[
n] == vectors[i])
137 bool isitTensor =
false;
140 if (fieldNames[
n] == tensors[i])
149 bool lagrangianNamesFound =
false;
153 runTime.setTime(
timeDirs[n+1], n+1);
155 Cloud<passiveParticle> lagrangian(*
meshPtr, cloud::defaultName);
158 if (lagrangian.size())
160 lagrangianNamesFound =
true;
175 if (sprayHeader.headerOk())
177 Info<<
"[Found lagrangian]" <<
endl;
183 IOobjectList
objects(*meshPtr, runTime.timeName(), cloud::prefix);
190 isSpray[fieldNames.size()] =
true;
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > 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]