18 #ifndef ADFPARSER_INCLUDES 20 The ADFPARSER_INCLUDES macro is not defined. A possible reason is that you \ 21 are compiling MOOSE from a custom application. Please check your application \ 22 Makefile and make sure that you are appending options to ADDITIONAL_CPPFLAGS \ 23 using the += operator, rather than overwriting the variable with the := operator. 29 #if LIBMESH_HAVE_FPARSER_JIT 31 const auto type_hash =
typeid(
ADReal).hash_code();
39 const auto include_path_env = std::getenv(
"MOOSE_ADFPARSER_JIT_INCLUDE");
41 result = JITCompileHelper(
42 "ADReal", fopenmp,
"#include \"" + std::string(include_path_env) +
"\"\n", type_hash);
46 const std::string include_path =
50 JITCompileHelper(
"ADReal", fopenmp,
"#include \"" + include_path +
"\"\n", type_hash);
53 result = JITCompileHelper(
54 "ADReal", fopenmp +
" " + ADFPARSER_INCLUDES,
"#include \"ADReal.h\"\n", type_hash);
59 mooseError(
"ADFParser::JITCompile() failed. Evaluation not possible.");
67 mooseAssert(compiledFunction,
"ADFParser objects must be JIT compiled before evaluation!");
69 (*
reinterpret_cast<CompiledFunctionPtr<ADReal>
>(compiledFunction))(&ret,
vars, pImmed,
_epsilon);
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
std::string getExecutablePath()
This function returns the PATH of the running executable.
DualNumber< Real, DNDerivativeType, true > ADReal
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true, bool check_for_git_lfs_pointer=true)
Checks to see if a file is readable (exists and permissions)
std::filesystem::path pathjoin(const std::filesystem::path &p)