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;
121 bool isitVector =
false;
137 bool isitTensor =
false;
149 bool lagrangianNamesFound =
false;
155 Cloud<passiveParticle> lagrangian(*
meshPtr, cloud::defaultName);
158 if (lagrangian.size())
160 lagrangianNamesFound =
true;
175 if (sprayHeader.headerOk())
177 Info<<
"[Found lagrangian]" <<
endl;
#define forAll(list, i)
Loop across all elements in list.
int USERD_set_filenames(char filename_1[], char filename_2[], char the_path[], int swapbytes)
void size(const label)
Override size to be inconsistent with allocated storage.
static instantList findTimes(const fileName &, const word &constantName="constant")
Search a given directory for valid time directories.
static int Num_unstructured_parts
static Cloud< passiveParticle > * sprayPtr
static int Numparts_available
static word sprayScalarFieldName
static int Num_structured_parts
static instantList timeDirs
static List< word > lagrangianScalarNames
static int Current_time_step
static bool isSpray[maxNames]
static List< word > lagrangianVectorNames
static word sprayVectorFieldName
static int Num_time_steps
static label nSprayVariables
static bool isVector[maxNames]
static bool isTensor[maxNames]
static List< word > fieldNames
static bool isScalar[maxNames]
static label var2field[maxNames]
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Ostream & flush(Ostream &os)
Flush stream.