24#include "libmesh/utility.h"
25#include "libmesh/elem.h"
62 for (
const auto component : make_range(
Moose::dim))
63 if (!std::isfinite(point(component)))
88 std::string path =
".";
89 for (
int i = 0; i < 5; i++)
91 auto testroot =
pathjoin(path,
"testroot");
102 std::istringstream ss(input);
104 if (ss >> real_value && ss.eof())
107 (*parsed_real) = real_value;
115 const std::string & dir_name,
116 const std::string & extra_error_msg)
121 std::string installed_path =
124 auto test_root =
pathjoin(installed_path,
"testroot");
126 mooseError(
"Couldn't locate any installed inputs to copy in path: ",
132 return installed_path;
143 auto docfile =
pathjoin(installed_path,
"css",
"moose.css");
145 return installed_path;
152 return "https://mooseframework.inl.gov/" + path;
156replaceAll(std::string str,
const std::string & from,
const std::string & to)
158 size_t start_pos = 0;
159 while ((start_pos = str.find(from, start_pos)) != std::string::npos)
161 str.replace(start_pos, from.length(), to);
162 start_pos += to.length();
170 auto slash_pos = orig.find_last_of(
"/");
171 auto path = orig.substr(0, slash_pos);
172 auto file = orig.substr(slash_pos + 1);
173 if (file !=
"LATEST")
178 if (converted.empty())
179 mooseError(
"Unable to find suitable recovery file!");
191 auto s1len = s1.size();
192 auto s2len = s2.size();
194 auto column_start = (
decltype(s1len))1;
196 auto column =
new decltype(s1len)[s1len + 1];
197 std::iota(column + column_start, column + s1len + 1, column_start);
199 for (
auto x = column_start; x <= s2len; x++)
202 auto last_diagonal = x - column_start;
203 for (
auto y = column_start; y <= s1len; y++)
205 auto old_diagonal = column[y];
206 auto possibilities = {
207 column[y] + 1, column[y - 1] + 1, last_diagonal + (s1[y - 1] == s2[x - 1] ? 0 : 1)};
208 column[y] = std::min(possibilities);
209 last_diagonal = old_diagonal;
212 auto result = column[s1len];
220 std::map<char, std::string> escapes;
221 escapes[
'\a'] =
"\\a";
222 escapes[
'\b'] =
"\\b";
223 escapes[
'\f'] =
"\\f";
224 escapes[
'\n'] =
"\\n";
225 escapes[
'\t'] =
"\\t";
226 escapes[
'\v'] =
"\\v";
227 escapes[
'\r'] =
"\\r";
229 for (
const auto & it : escapes)
230 for (
size_t pos = 0; (pos = str.find(it.first, pos)) != std::string::npos;
231 pos += it.second.size())
232 str.replace(pos, 1, it.second);
238 return std::regex_replace(input, std::regex(
"^\\s+|\\s+$|\\s+(?=\\s)"),
"");
243 const std::string & string_to_find,
244 const std::string & delims)
246 std::vector<std::string> elements;
247 tokenize(expression, elements, 0, delims);
249 std::vector<std::string>::iterator found_it =
250 std::find(elements.begin(), elements.end(), string_to_find);
251 if (found_it != elements.end())
261 return (stat(path.c_str(), &buffer) == 0);
266 bool check_line_endings,
267 bool throw_on_unreadable,
268 bool check_for_git_lfs_pointer)
270 std::ifstream in(filename.c_str(), std::ifstream::in);
273 if (throw_on_unreadable)
275 (std::string(
"Unable to open file \"") + filename +
276 std::string(
"\". Check to make sure that it exists and that you have read permission."))
282 if (check_line_endings)
284 std::istream_iterator<char> iter(in);
285 std::istream_iterator<char> eos;
289 mooseError(filename +
" contains Windows(DOS) line endings which are not supported.");
293 mooseError(filename +
" appears to be a Git-LFS pointer. Make sure you have \"git-lfs\" "
294 "installed so that you may pull this file.");
303 mooseAssert(file.is_open(),
"Passed in file handle is not open");
310 std::getline(file, line);
311 if (line.find(
"version https://") != std::string::npos)
320 std::ofstream out(filename.c_str(), std::ios_base::app);
323 if (throw_on_unwritable)
325 (std::string(
"Unable to open file \"") + filename +
326 std::string(
"\". Check to make sure that it exists and that you have write permission."))
340 processor_id_type secondary_processor_id;
343 Moose::out <<
"Waiting For Other Processors To Finish" << std::endl;
344 if (comm.
rank() == 0)
348 Moose::out <<
"Jobs complete: 1/" << comm.
size() << (1 == comm.
size() ?
"\n" :
"\r")
350 for (
unsigned int i = 2; i <= comm.
size(); ++i)
352 comm.
receive(MPI_ANY_SOURCE, secondary_processor_id);
354 Moose::out <<
"Jobs complete: " << i <<
"/" << comm.
size()
355 << (i == comm.
size() ?
"\n" :
"\r") << std::flush;
360 secondary_processor_id = comm.
rank();
361 comm.
send(0, secondary_processor_id);
378 mooseWarning(
"Entering serial execution block (use only for debugging)");
393 if (comm.
rank() == 0 && warn)
394 mooseWarning(
"Leaving serial execution block (use only for debugging)");
398hasExtension(
const std::string & filename, std::string ext,
bool strip_exodus_ext)
401 std::string file_ext;
402 if (strip_exodus_ext)
405 ".*\\.([^\\.]*?)(?:-s\\d+)?\\s*$");
406 re.FullMatch(filename, &file_ext);
410 pcrecpp::RE re(
".*\\.([^\\.]*?)\\s*$");
411 re.FullMatch(filename, &file_ext);
424 std::string file_ext =
"";
428 const std::string stripped_filename = splitFileName<std::string>(filename).second;
429 auto pos = rfind ? stripped_filename.rfind(
".") : stripped_filename.find(
".");
430 if (pos != std::string::npos)
431 file_ext += stripped_filename.substr(pos + 1, std::string::npos);
441 const bool offset = (ext.size() != 0);
443 return s.substr(0, s.size() - ext.size() - offset);
453 constexpr unsigned int BUF_SIZE = 1024;
454 char buffer[BUF_SIZE];
456 return getcwd(buffer, BUF_SIZE) !=
nullptr ? buffer :
"";
460makedirs(
const std::string & dir_name,
bool throw_on_failure)
463 std::vector<std::string> split_dir_names;
466 auto n = split_dir_names.size();
473 if (split_dir_names[i] ==
".")
475 for (
auto j = i + 1; j < n; ++j)
476 split_dir_names[j - 1] = split_dir_names[j];
479 else if (i > 0 && split_dir_names[i] ==
".." && split_dir_names[i - 1] !=
"..")
481 for (
auto j = i + 1; j < n; ++j)
482 split_dir_names[j - 2] = split_dir_names[j];
492 split_dir_names.resize(n);
495 std::string cur_dir = dir_name[0] ==
'/' ?
"" :
".";
496 for (
auto & dir : split_dir_names)
498 cur_dir +=
"/" + dir;
505 std::string msg =
"Failed creating directory " + dir_name;
506 if (throw_on_failure)
507 throw std::invalid_argument(msg);
516removedirs(
const std::string & dir_name,
bool throw_on_failure)
519 std::vector<std::string> split_dir_names;
522 auto n = split_dir_names.size();
529 if (split_dir_names[i] ==
".")
531 for (
auto j = i + 1; j < n; ++j)
532 split_dir_names[j - 1] = split_dir_names[j];
535 else if (i > 0 && split_dir_names[i] ==
".." && split_dir_names[i - 1] !=
"..")
537 for (
auto j = i + 1; j < n; ++j)
538 split_dir_names[j - 2] = split_dir_names[j];
548 split_dir_names.resize(n);
551 std::string base_dir = dir_name[0] ==
'/' ?
"" :
".";
552 for (i = n; i > 0; --i)
554 std::string cur_dir = base_dir;
556 for (j = 0; j < i; ++j)
557 cur_dir +=
"/" + split_dir_names[j];
562 auto code = rmdir(cur_dir.c_str());
565 std::string msg =
"Failed removing directory " + dir_name;
566 if (throw_on_failure)
567 throw std::invalid_argument(msg);
581 std::string replaced = camel_case_name;
583 pcrecpp::RE(
"(?!^)(?<![A-Z_])([A-Z]+)").GlobalReplace(
"_\\1", &replaced);
586 std::transform(replaced.begin(), replaced.end(), replaced.begin(), ::tolower);
593 pcrecpp::StringPiece input(underscore_name);
594 pcrecpp::RE re(
"([^_]*)(_|$)");
597 std::string us, not_us;
598 bool make_upper = leading_upper_case;
599 while (re.Consume(&input, ¬_us, &us))
601 if (not_us.length() > 0)
605 result += std::toupper(not_us[0]);
606 if (not_us.length() > 1)
607 result += not_us.substr(1);
625 return name.substr(name.find_last_of(
'/') != std::string::npos ? name.find_last_of(
'/') + 1 : 0);
631 return name.substr(0, name.find_last_of(
'/') != std::string::npos ? name.find_last_of(
'/') : 0);
644 if (!GetComputerNameEx(ComputerNamePhysicalDnsHostname,
hostname, &dwSize))
658 unsigned short ws_col;
665 w.ws_col = std::numeric_limits<unsigned short>::max();
669 char * pps_width = std::getenv(
"MOOSE_PPS_WIDTH");
670 if (pps_width != NULL)
672 std::stringstream ss(pps_width);
677 if (w.ws_col == std::numeric_limits<unsigned short>::max())
682 ioctl(0, TIOCGWINSZ, &w);
692 if (w.ws_col == std::numeric_limits<unsigned short>::max())
703 for (
const auto & elem_it : props)
705 Moose::out <<
"Element " << elem_it.first->id() <<
'\n';
708 for (
const auto & side_it : elem_it.second)
710 Moose::out <<
" Side " << side_it.first <<
'\n';
713 unsigned int cnt = 0;
714 for (
const auto & mat_prop : side_it.second)
718 Moose::out <<
" Property " << cnt <<
'\n';
722 for (
unsigned int qp = 0; qp < mp->size(); ++qp)
723 Moose::out <<
" prop[" << qp <<
"] = " << (*mp)[qp] <<
'\n';
729 Moose::out << std::flush;
735 pcrecpp::RE re(
"(\\33\\[3[0-7]m))", pcrecpp::DOTALL());
736 re.GlobalReplace(std::string(
""), &msg);
742 unsigned int line_width )
744 for (
auto i : make_range(
int(message.length() / line_width)))
745 message.insert((i + 1) * (line_width + 2) - 2,
"\n");
750 std::string & message,
752 bool indent_first_line,
753 const std::string & post_prefix)
760 std::string colored_message;
761 std::string curr_color = COLOR_DEFAULT;
762 std::string line, color_code;
764 bool ends_in_newline = message.empty() ? true : message.back() ==
'\n';
768 std::istringstream iss(message);
769 for (std::string line; std::getline(iss, line);)
771 const static pcrecpp::RE match_color(
".*(\\33\\[3\\dm)((?!\\33\\[3\\d)[^\n])*");
772 pcrecpp::StringPiece line_piece(line);
773 match_color.FindAndConsume(&line_piece, &color_code);
775 if (!first || indent_first_line)
776 colored_message += color + prefix + post_prefix + curr_color;
778 colored_message += line;
781 if (!iss.eof() || ends_in_newline)
782 colored_message +=
"\n";
784 if (!color_code.empty())
785 curr_color = color_code;
789 message = colored_message;
792std::list<std::string>
793listDir(
const std::string path,
bool files_only)
795 std::list<std::string> files;
799 tinydir_open(&dir, path.c_str());
805 tinydir_readfile(&dir, &file);
807 if (!files_only || !file.is_dir)
808 files.push_back(path +
"/" + file.name);
818std::list<std::string>
819getFilesInDirs(
const std::list<std::string> & directory_list,
const bool files_only )
821 std::list<std::string> files;
823 for (
const auto & dir_name : directory_list)
824 files.splice(files.end(),
listDir(dir_name, files_only));
835 std::time_t newest_time = 0;
836 std::list<std::string> newest_restart_files;
839 for (
const auto & cp_file : checkpoint_files)
844 stat(cp_file.c_str(), &stats);
846 std::time_t mod_time = stats.st_mtime;
847 if (mod_time > newest_time)
849 newest_restart_files.clear();
850 newest_time = mod_time;
853 if (mod_time == newest_time)
854 newest_restart_files.push_back(cp_file);
859 int max_file_num = -1;
860 std::string max_file;
861 std::string max_prefix;
867 pcrecpp::RE re_file_num(
"(.*?(\\d+))-restart-\\d+.rd$");
870 for (
const auto & res_file : newest_restart_files)
875 std::string file_prefix;
877 re_file_num.FullMatch(res_file, &file_prefix, &file_num);
879 if (file_num > max_file_num)
885 max_file_num = file_num;
887 max_prefix = file_prefix;
892 if (max_file_num == -1)
902 if (search_string ==
"")
906 std::transform(name.begin(), name.end(), name.begin(), (
int (*)(
int))std::toupper);
907 std::transform(search_string.begin(),
909 search_string.begin(),
910 (
int (*)(
int))std::toupper);
913 if (search_string.find(
"*") == std::string::npos)
914 return search_string == name;
917 std::vector<std::string> tokens;
921 for (
unsigned int i = 0; i < tokens.size() && pos != std::string::npos; ++i)
923 pos = name.find(tokens[i], pos);
925 if (search_string[0] !=
'*' && i == 0 && pos != 0)
929 if (pos != std::string::npos && tokens.size() > 0)
932 size_t last_token_length = tokens.back().length();
933 if (*search_string.rbegin() ==
'*' || pos == name.size() - last_token_length)
944 const std::string & pattern,
948 if (p == pattern.size())
949 return c == candidate.size();
951 if (pattern[p] ==
'*')
953 for (; c < candidate.size(); ++c)
959 if (pattern[p] !=
'?' && pattern[p] != candidate[c])
962 return globCompare(candidate, pattern, c + 1, p + 1);
966beginsWith(
const std::string & value,
const std::string & begin_value)
968 return value.rfind(begin_value, 0) == 0;
980 return convert<int>(input, throw_on_failure);
985 dof_id_type num_chunks,
986 dof_id_type chunk_id,
987 dof_id_type & num_local_items,
988 dof_id_type & local_items_begin,
989 dof_id_type & local_items_end)
991 auto global_num_local_items = num_items / num_chunks;
993 num_local_items = global_num_local_items;
995 auto leftovers = num_items % num_chunks;
997 if (chunk_id < leftovers)
1000 local_items_begin = num_local_items * chunk_id;
1004 (global_num_local_items + 1) * leftovers + global_num_local_items * (chunk_id - leftovers);
1006 local_items_end = local_items_begin + num_local_items;
1012 auto global_num_local_items = num_items / num_chunks;
1014 auto leftovers = num_items % num_chunks;
1016 auto first_item_past_first_part = leftovers * (global_num_local_items + 1);
1019 if (item_id < first_item_past_first_part)
1020 return item_id / (global_num_local_items + 1);
1023 auto new_item_id = item_id - first_item_past_first_part;
1026 return leftovers + (new_item_id / global_num_local_items);
1030std::vector<std::string>
1031split(
const std::string & str,
const std::string & delimiter, std::size_t max_count)
1033 std::vector<std::string> output;
1034 std::size_t
count = 0;
1035 size_t prev = 0, pos = 0;
1038 pos = str.find(delimiter, prev);
1039 output.push_back(str.substr(prev, pos - prev));
1040 prev = pos + delimiter.length();
1042 }
while (pos != std::string::npos &&
count < max_count);
1044 if (pos != std::string::npos)
1045 output.push_back(str.substr(prev));
1050std::vector<std::string>
1051rsplit(
const std::string & str,
const std::string & delimiter, std::size_t max_count)
1053 std::vector<std::string> output;
1054 std::size_t
count = 0;
1055 size_t prev = str.length(), pos = str.length();
1058 pos = str.rfind(delimiter, prev);
1059 output.insert(output.begin(), str.substr(pos + delimiter.length(), prev - pos));
1060 prev = pos - delimiter.length();
1062 }
while (pos != std::string::npos && pos > 0 &&
count < max_count);
1064 if (pos != std::string::npos)
1065 output.insert(output.begin(), str.substr(0, pos));
1075 auto err = symlink(target.c_str(), link.c_str());
1077 auto err = CreateSymbolicLink(target.c_str(), link.c_str(), 0);
1080 mooseError(
"Failed to create symbolic link (via 'symlink') from ", target,
" to ", link);
1088 if (lstat(link.c_str(), &sbuf) == 0)
1090 auto err = unlink(link.c_str());
1092 mooseError(
"Failed to remove symbolic link (via 'unlink') to ", link);
1095 auto attr = GetFileAttributesA(link.c_str());
1096 if (attr != INVALID_FILE_ATTRIBUTES)
1098 auto err = _unlink(link.c_str());
1100 mooseError(
"Failed to remove link/file (via '_unlink') to ", link);
1110 if (!stat(filename.c_str(), &buffer))
1111 return buffer.st_size;
1113 HANDLE hFile = CreateFile(filename.c_str(),
1115 FILE_SHARE_READ | FILE_SHARE_WRITE,
1118 FILE_ATTRIBUTE_NORMAL,
1120 if (hFile == INVALID_HANDLE_VALUE)
1124 if (GetFileSizeEx(hFile, &size))
1127 return size.QuadPart;
1138 return std::filesystem::absolute(path);
1155 std::string s = cpp_type;
1157 pcrecpp::RE(
"\\s(?=>)").GlobalReplace(
"", &s);
1158 pcrecpp::RE(
"std::__\\w+::").GlobalReplace(
"std::", &s);
1160 pcrecpp::RE(
"\\s*std::basic_string<char, std::char_traits<char>, std::allocator<char>>\\s*")
1161 .GlobalReplace(
"std::string", &s);
1163 pcrecpp::RE r(
"std::vector<([[:print:]]+),\\s?std::allocator<\\s?\\1\\s?>\\s?>");
1164 r.GlobalReplace(
"std::vector<\\1>", &s);
1166 r.GlobalReplace(
"std::vector<\\1>", &s);
1169 "std::map<\\s*((?:[^,<]|<[^>]*>)+)\\s*,\\s*((?:[^,<]|<[^>]*>)+)\\s*,\\s*"
1170 "std::less<\\s*\\1\\s*>\\s*,\\s*"
1171 "std::allocator<\\s*std::pair<\\s*(?:const\\s*\\1|\\1\\s*const)\\s*,\\s*\\2\\s*>\\s*>\\s*>");
1172 r_map.GlobalReplace(
"std::map<\\1, \\2>", &s);
1174 "std::unordered_map<\\s*([^,]+)\\s*,\\s*([^,]+)\\s*,\\s*"
1175 "std::hash<\\s*\\1\\s*>\\s*,\\s*"
1176 "std::equal_to<\\s*\\1\\s*>\\s*,\\s*"
1177 "std::allocator<\\s*std::pair<\\s*(?:const\\s*\\1|\\1\\s*const)\\s*,\\s*\\2\\s*>\\s*>\\s*>");
1178 r_umap.GlobalReplace(
"std::unordered_map<\\1, \\2>", &s);
1186 return std::filesystem::weakly_canonical(path).c_str();
1190startsWith(
const std::string & string1,
const std::string & string2)
1192 if (string2.size() > string1.size())
1194 return string1.compare(0, string2.size(), string2) == 0;
1198replaceStart(std::string & string1,
const std::string & string2,
const std::string & string3)
1201 "Cannot replace the start because it doesn't match the start string");
1202 string1.replace(0, string2.size(), string3);
1209 str.begin(), str.end(), [](
unsigned char c) { return !std::isalpha(c) || std::islower(c); });
1216 std::string::size_type n = sub.length();
1217 for (std::string::size_type i =
main.find(sub); i != std::string::npos; i =
main.find(sub))
1224 std::string copy_main =
main;
1225 std::string::size_type n = sub.length();
1226 for (std::string::size_type i = copy_main.find(sub); i != std::string::npos;
1227 i = copy_main.find(sub))
1228 copy_main.erase(i, n);
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
void removeSubstring(std::string &main, const std::string &sub)
void ErrorVector unsigned int
A MultiMooseEnum object to hold "execute_on" flags.
HashMap is an abstraction for dictionary data type, we make it thread-safe by locking inserts.
static bool isAvailable(const std::filesystem::path &folder_base)
processor_id_type size() const
processor_id_type rank() const
Status receive(const unsigned int dest_processor_id, T &buf, const MessageTag &tag=any_tag) const
void send(const unsigned int dest_processor_id, const T &buf, const MessageTag &tag=no_tag) const
const ExecFlagEnum & getDefaultFlags() const
static ExecFlagRegistry & getExecFlagRegistry()
Return Singleton instance.
void replaceStart(std::string &string1, const std::string &string2, const std::string &string3)
void linearPartitionItems(dof_id_type num_items, dof_id_type num_chunks, dof_id_type chunk_id, dof_id_type &num_local_items, dof_id_type &local_items_begin, dof_id_type &local_items_end)
int stringToInteger(const std::string &input, bool throw_on_failure)
bool isFinitePoint(const Point &point)
std::string mooseDocsURL(const std::string &path)
bool checkForGitLFSPointer(std::ifstream &file)
std::string & removeColor(std::string &msg)
std::string realpath(const std::string &path)
void removedirs(const std::string &dir_name, bool throw_on_failure)
std::filesystem::path pathjoin(const std::filesystem::path &p)
bool hasExtension(const std::string &filename, std::string ext, bool strip_exodus_ext)
unsigned short getTermWidth(bool use_environment)
std::string canonicalPath(const std::string &path)
void indentMessage(const std::string &prefix, std::string &message, const char *color, bool indent_first_line, const std::string &post_prefix)
std::string removeExtraWhitespace(const std::string &input)
std::string getCurrentWorkingDir()
std::string camelCaseToUnderscore(const std::string &camel_case_name)
std::string baseName(const std::string &name)
bool pathContains(const std::string &expression, const std::string &string_to_find, const std::string &delims)
void createSymlink(const std::string &target, const std::string &link)
void makedirs(const std::string &dir_name, bool throw_on_failure)
std::string installedInputsDir(const std::string &app_name, const std::string &dir_name, const std::string &extra_error_msg)
std::vector< std::string > split(const std::string &str, const std::string &delimiter, std::size_t max_count)
void tokenize(const std::string &str, std::vector< T > &elements, unsigned int min_len=1, const std::string &delims="/")
This function will split the passed in string on a set of delimiters appending the substrings to the ...
std::list< std::string > getFilesInDirs(const std::list< std::string > &directory_list, const bool files_only)
bool checkFileWriteable(const std::string &filename, bool throw_on_unwritable)
void serialEnd(const libMesh::Parallel::Communicator &comm, bool warn)
std::string getExtension(const std::string &filename, const bool rfind)
bool isAllLowercase(const std::string &str)
bool pathExists(const std::string &path)
int levenshteinDist(const std::string &s1, const std::string &s2)
std::string docsDir(const std::string &app_name)
bool startsWith(const std::string &string1, const std::string &string2)
bool parsesToReal(const std::string &input, Real *parsed_real)
std::string replaceAll(std::string str, const std::string &from, const std::string &to)
processor_id_type linearPartitionChunk(dof_id_type num_items, dof_id_type num_chunks, dof_id_type item_id)
void escape(std::string &str)
std::string convertLatestCheckpoint(std::string orig)
std::string underscoreToCamelCase(const std::string &underscore_name, bool leading_upper_case)
bool globCompare(const std::string &candidate, const std::string &pattern, std::size_t c, std::size_t p)
ExecFlagEnum getDefaultExecFlagEnum()
bool beginsWith(const std::string &value, const std::string &begin_value)
void parallelBarrierNotify(const Parallel::Communicator &comm, bool messaging)
BoundingBox buildBoundingBox(const Point &p1, const Point &p2)
void MaterialPropertyStorageDump(const HashMap< const libMesh::Elem *, HashMap< unsigned int, MaterialProperties > > &props)
std::string prettyCppType(const std::string &cpp_type)
std::string stripExtension(const std::string &s, const bool rfind)
std::string findTestRoot()
std::size_t fileSize(const std::string &filename)
bool wildCardMatch(std::string name, std::string search_string)
void addLineBreaks(std::string &message, unsigned int line_width)
std::list< std::string > listDir(const std::string path, bool files_only)
void serialBegin(const libMesh::Parallel::Communicator &comm, bool warn)
std::string getLatestCheckpointFilePrefix(const std::list< std::string > &checkpoint_files)
void clearSymlink(const std::string &link)
bool checkFileReadable(const std::string &filename, bool check_line_endings, bool throw_on_unreadable, bool check_for_git_lfs_pointer)
std::string runTestsExecutable()
std::string shortName(const std::string &name)
std::vector< std::string > rsplit(const std::string &str, const std::string &delimiter, std::size_t max_count)
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
std::string getExecutablePath()
Gets the directory the running executable is on Mac OS X and linux.
int mkdir(const char *pathname)